Cleanup and HTTPS support

As described in the title. Depends on my PR in HttpCommon as well as a commit in base Julia that should land soon-ish.