Implement support of HTTPS and SOCKS proxy settings

Implement support of HTTPS and SOCKS proxy settings.

If SOCKS proxy and credentials are set up then they are set too.