etcdserver/etcdhttp: split out peers and add tests

OK, sure.