Support for TOR and generic SOCKS proxies (issue #13)