renames keepalive to heartbeat
corrects name of sendHeartbeatMessage in Client (small beat)
adds session cookie handling code to WS server