Add heartbeat implementation and remove debugging information.
Add working revision for client heartbeat.