Raft mostly working

Testing locally with an election timeout of 150-300s.