lots of code for integrating with raft, not tested yet
about to make major changes to raft_server.c because it sucks
about to push