Adding support for zookeeper

Refactored and reused some of the install functions