Added support for forceHttps flag (CRAFTERCMS-758).