More debug logging improvments
Improved redirection to URLs

Previously, the script got around IE<9 referrer issues by creating a hidden form, populating the action and hidden fields, and 'submitting' it. This was messy and was adding a `?` to the end of all outgoing links. Now, the script detects IE 8 and lower and only uses the workaround for those browsers. Additionally, it uses a new workaround that doesn't add the `?` and seems to be just as reliable!