Lots of good cleanup: better configuration handling in actions, a it more documentation, and better management of Raft state by using some common functions to change it.