Added HTTPS support.
Note however that the RPC traffic is currently not over SSL/TLS.