etcdserver/etcdhttp: split out peers and add tests

`sort.Sort(int64Slice(ids))`