snmp: use a regular expression to split host/port

And also to detect IPv6 or IPv4. Still assumes IPv4 most of the time.
snmp: handle IPv6 name resolution for IPv6-only hosts

Otherwise, still use IPv4 by default, even if the host could be
IPv6-enabled.