Merge pull request #175 from philips/cleanup-locks-in-peer

Cleanup locks in peer
Add EventDispatcher.RemoveEventListener().
Dispatch commit event.
Merge pull request #178 from goraft/commit-event

Dispatch commit event.
Merge branch 'master' of https://github.com/goraft/raft