CLOUDIFY-1535 Fixed NPE in zookeeper connection watcher

zookeeper member is not initialized when the watcher is invoked which causes a NPE.
CLOUDIFY-1535 Simplified client creation code.

- Added a test for checking candidate node functionality when zk is initially not started.