etcdserver/etcdhttp: split out peers and add tests

reasonable. what about line 82 and 85?