Added better IPv6 parsing to the URI, and cleaned up some warnings.
Merge pull request #448 from glynos/0.11-devel-uri-ipv6

Added better IPv6 parsing to the URI, and cleaned up some warnings.