MBS-2411, changes based on feedback from code review.

- Rename REQUIRE_SSL_ENABLED to SSL_REDIRECTS_ENABLED
- Remove remnants of old ?secure=1 implementation of returning to http://
- Use Hook::LexWrap in tests to set SSL_REDIRECTS_ENABLED.