etcdserver/etcdhttp: split out peers and add tests

etcd breaks on a 32bit machine :-)