Adding HTTPS / HTTP Tunneling support

https://github.com/gevorg/http-auth/issues/22