Make use of flask.current_app context local

Given patch allows using Raven in multi-app Flask environment.