raft: add handleHeartbeat

handleHeartbeat commits to the commit index in the message. It never decreases the
commit index of the raft state machine.
@bdarnell You probably need to do a rebase due to this change. :(