New java zookeeper library to handle leader election. Only 2 apis need to be called from the client. 1) MasterSelection construction with path and id-node, along with zookeeper ip and 2) waitForLeadership(), which will keep the process waiting till it attains leadership

Change-Id: Iead29f5176021d93e4570c26a4b81a0a0a171160
Merge "New java zookeeper library to handle leader election. Only 2 apis need to be called from the client. 1) MasterSelection construction with path and id-node, along with zookeeper ip and 2) waitForLeadership(), which will keep the process waiting till it attains leadership"