etcdserver/etcdhttp: split out peers and add tests

this is inside test... and `id` is never greater than max(int32). i guess it is ok for now....