Changes to enable rolling restart of ZooKeeper server

Changes in this PR will coordinate the restart of ZK servers one at a time in scenarios like configuration changes so that all the ZK servers are not down at the same time.