backport exception handling from stauton
separate heartbeats (Beat) from client
data.unique trick

Conflicts:
	Sockets.hs
runMaybeT . forever trick