etcdserver/etcdhttp: split out peers and add tests

oops, haven't actually added the test for wids yet