(TWILL-133) Make the ZKClient stoppable even it is still trying to connect

- Also include refactoring of the DefaultZKClient class to simplify
  shutdown logic
- Fix a thread leaking bug in LeaderElection

This closes #41 on GitHub

Signed-off-by: Terence Yim <chtyim@apache.org>
3 files changed