Finish up first draft of raft_core, and add a unit test, but nothing compiles yet.