Added session staleness detection
* Added client side heartbeat
* Made the server only allow connecting to not-stale sessions