minor refactoring
leader election logic in temp additional package - yet to be tested
Refactoring
Zookeeper hook added