Moved append entries call out of doServe, cleaned up how doPulse triggers a heartbeat, and factored out the code in commit a bit more.