Added IPv6 support for 'external'  command and -e

Now, 2 external addresses can be specified: one for IPv4 and one for
IPv6
initial partial patches for IPv6 client support
add IPv4/IPv6 selection for outgoing connections
more changes for IPv6 client support
IPv6 bugfixes
name resolution bugfixes
getip46 corrected