Initial implementation of Raft protocol implementing leader election