Zookeeper integration - tests, cleanup and doc

Add tests for the ZooKeeper client, cleanup unused code and add documentation.