Strip trailing slashes.
Allow internal URLs to use HTTPS.
Update configuration example with HTTPS only option.
Modify test to handle HTTPS mode.
Make test for HTTPS mode more correct.
Use 1 instead of TRUE.
Added more verbose error output to test suite.