Fixed socket leak in Connector.stop().
Removed dead code in RemoteRoutineProcessor.
Added heartbeat acknowledgements.
Rewrote reconnection code on client.