Make batch size configurable.
Merge pull request #186 from EasonLiao/config_batch_size

Make batch size configurable.
Remove round robin election.
Merge pull request #184 from EasonLiao/remove_round_robin

remove round robin election
Some cleanups on code.
Expose ZabConfig to user.