cleaning up raft code
correctly setting log entry term numbers in appendentries
Merge remote-tracking branch 'origin/master'
finished taking our code out into its own file