Remove setState from Raft interface

TODO: Remove type() from Raft interface and replace with isLeader()
Make RaftCoreModule public