rework heartbeat loop
rework heartbeat loop

Wait to start sending messages until we've sent hello and give time for
it to be absorbed. Also, stop sending snapshots if we're just
disconnected with no error.

markwal/OctoPrint-PolarCloud,markwal/OctoPrint-PolarCloud