improve ZooKeeper watcher to wait for ZK failover (fix #52)
fix code style
Merge pull request #776 from jubatus/fix-52

Improve ZooKeeper watcher to wait for ZK failover