'peers' RPC command

This just adds a `peers` RPC command which outputs a list of the currently connected peers.

Also includes a fix to `core` to populate the PeerMap, making the peer data accessible.
this 'i' is shadowing 'i' on L22.

On 25, you can use the presently underscored variable as an outer i