Add VNC heartbeat.

Add a heartbeat for fast recovery of dead connections.
One heartbeat can be skipped, as soon as 2 heartbeats are skipped the connection is closed.
A heartbeat every 10 seconds is required for quick recovery.