Add ZooKeeper Replication.

Some bug fixes / typos too!