Support HTTPS urls.

If we call `set_domain` with a URL with an explicit scheme then we
should use that scheme. If we omit the scheme then we should default to
standard HTTP requests