Fixed the ssl redirect for development. Added ability to disable prodiction check.