Support the getpeerinfo() api call

Support the getpeerinfo() api call. Not much to say here. 

Ah, I just see that this branch also includes the listaddressgroupings commit. Sorry about that. Message me if you need anything modified. Thanks.