feat return the stateMachine

We need to expose the API to get the passed in `stateMachine`.
In `etcd`, we want to get the `store` reference from the `raft` server.