Socks proxy support

Adds two configuration parameters, proxyServer and proxyPort, which in turn
enable socks5 proxy support in the driver.
This is going to break pretty soon if proxy resolves to IPv6 address.