Make XCloud upload URL protocol-aware.

Client-side portion of a fix for #183.

The XCloud servers still need to be configured to serve content over HTTPS.