Added user config, HTTPS support and a few tweaks.