Refactor the QuorumZab interface.
Merge pull request #115 from EasonLiao/refactory

Clarified workflow of client interface.