HttpsEnforcer redirects with status code 301 instead of 302

- Improve javadoc of HttpsEnforcer
- Improved debugging in HttpsEnforcer