Allow redirects through to user

For some reason flask.redirect returns a response that is derived from werkzeug.wrappers.Response, rather than flask.Response. Testing with some dummy code proves this problem to be a bit inconsistent:


The code on this branch fixes this, but there may be a better way to fix this problem.