Handle HTTPS redirects.

Attempts to download the DevKit direclty from GitHub will get redirected via an HTTPS URL and will fail unless the net/https library is invoked and the HTTPS request is handled correclty.

This change makes is possible to handle HTTPS redirected requests.