IPv6 support for TCP SSL HTTP

If applied Electrum will resolv hostnames to IPv4 and IPv6, and will cycle through resolved address until a connection is made or all fail.

Should not effect proxying.
Tested with TCP, SSL and HTTP, I could not get HTTPS to work.