Merge pull request #11 from EasonLiao/simple_test

List all the KV pairs for empty GET.
Implement StateMachine.stateChanged.
Merge pull request #12 from m1ch1/master

Implement StateMachine.stateChanged.
Only reply the request sent by its own and clear pending queue when recovering.