Https support

This is a new pull request with the HTTPS support but without the gradle-version-specific tweak I put in to configure git into Idea.