indentation fix
added pending tests for candidate events
candidate converts to leader on majority vote
candidate converts to follower if appendentries msg is received
changed NodeId type from Int to ActorRef
expanded to kwargs after code review by Travis
tests and implementation for transition from Follower to Candidate