raft: add handleHeartbeat

handleHeartbeat commits to the commit index in the message. It never decreases the
commit index of the raft state machine.
sm.raftLog.commitTo(commit)