Add Raft endpoints and fix cluster init bugs