Test and refactor.

* Import modules, not names.
* Stricten port tests.
* Rename check_NAT_status to get_NAT_status.
* Test is_ipv6_address.
* Fix docstrings and test get_peer_url.