raft: add Status interface

Status returns the current status of raft state machine.