A general zookeeper callback framework