add registry api and zookeeper implementation