'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.
quick note: don't use my code for good use of pointers. I overuse them still.