Added HTTPS support, moved options to config.json