Directly return werkzeug responses to flask
This fixes redirects to the login page when not logged in.
Merge pull request #67 from kannibalox/master

Directly return werkzeug responses to flask