Added support for connecting and listening to IPv6 addresses.

This also removes all the IPv4-only legacy functions.
eliminated compiler warnings
config: eliminated check for seqfile, it is no longer used