Refactor JS redirect assertion to TestCase subclass

The facebookapps.utils.js_redirect test is now only a single method that calls this new assertion.