etcdserver/etcdhttp: simplify handler