force ssl, app.js cleanup
adding logging to ssl force for debugging
Fixes for force SSL redirect, logging first