etcdserver/etcdhttp: split out peers and add tests

this breaks on a 32bit machine.