Added support for HTTPS.

Added support for https - also because I introduced a "resource" I restructured the directories to match the gradle defaults as this seemed the sensible thing to do.