Neil Alexander has joined Hearts as both their goalkeeper and goalkeeping coach. The former Scotland player will join the club in July once his Crystal Palace contract expires.