Refactored getCurrentUrl() so that it can be easliy overwritten

Most modern frameworks have some sort of custom URL handling to get the current or intended URL. This is especially true when running from the command line. The SDK is set up so that if you overwrite `getCurrentUrl()` you have to also rewrite all the stripping-non-persistent-values stuff.

I refactored it so that `getCurrentUrl()` does nothing but just return the current URL so that it can be easily overwritten by the developer. Then I moved the stripping stuff into `getCurrentStrippedUrl()`.

I also added a new test that would ensure that all the values we don't want to persist will actually be stripped from the URL.

Lastly I made some minor syntax fixes to the bottom of the test file starting with line 2107.

This is my first PR, but I signed the CLA. Let me know if I missed anything else! Thanks! :)