etcdserver: add publish func

for #1094 
resWait is enough i think: https://github.com/coreos/etcd/blob/master/etcdserver/etcdhttp/http_test.go#L895