Move all url parsing into the PeerManager.