Add clientside connection timeout
Add Ping message

This is used as a keepalive message and for latency measurement.