Remove configured redirects

These where originally used for ease of testing, but it is better to simply mock the redirect function.
Fix middleware, now that request is not configured

I have mocked the internal functions that trigger a redirect, instead of mocking the core django method.