Fixed support for running the server on https (so all of the redirects and links correctly point to the https resources)