coordination, zookeeper: implement leader election

Change-Id: Ic3d1934b87be37ba56f744abd045adb634bcdb08