Implement support of HTTPS host and SOCKS host/credentials proxy settings

Implement support of HTTPS and SOCKS proxy settings.

If SOCKS proxy and credentials are set up then they are set too.