Added zookeeper lifecycle scripts.

- Fixed a problem with COSMO_HOME in java scripts.