WIP: Incorporate snapshot sending/receiving into RaftAlgorithm
Clean up heartbeat code structure