Support https service gateways

The service_gateway_client doesn't support service gateways using ssl.  This PR adds support for ssl.