Enabled secure cookies, added an option to change the temporary upload directory.