Fixes around devMode and useHttps.

- make devMode and useHttps work together.
- in devMode make call to bluekai sandbox url.
- Fix the issue where in devMode, the pop up was not showing up.