Adds HTTPS support for serverFrontend and securizes cookies