moves heartbeat code into websocket server Client, removes sendBroadcastMessage and
makes client send heartbeats

github - fixes #2