Added option to settings to enable or disable https on api calls.