Add RAFT endpoints and fix cluster init bugs

Agreed about the smaller functions. I feel this code is going to churn some more soon regardless.