convert flags to use ZooKeeper.

TODO: Make this more generic:
    convert values from json block to individual values
    back up cache for ZK outages.