Add a PeerGroup.connectToLocalhost helper method.