Merge pull request #7 from zorchenhimer/fix-https-detection

Fix false positive when detecting https.
Fixed documentation page to display the JSON string that would be returned instead of printing the PHP code.  Updated code to use _config() instead of the removed globals.  Also made the JSON <pre> word wrap.
Revert "Added nginx rewrite rule for backwards compatibility of old .torrent links."

This reverts commit 22c66a2cb9f486fbb9f25321a84f5a24faadfe70.

This commit isn't in the upstream.
Merge pull request #8 from zorchenhimer/fix-docs-page

Fix docs page
Merge remote-tracking branch 'upstream/master'