ISSUE7: Incompatibility with Zookeeper 3.4.x

This patch fixes the compilation problem against the latest ZooKeeper release (3.4.3). Factory was factored out into it's own class (was and still is a ZK private class), this patch addresses that change.