SERVER-5436 improve ipv6 parsing in HostAndPort

adds support for ipv6
expects []s surrounding host portion
confirms : for port occurs immediately after ]