Added a rudimentary heartbeat to help check that sockets are still
alive.
Updated App and Server to handle the heartbeat properly.
Modified App so that heartbeat and standby servers are now checked at
the same time.