Overhaul Flask implementation
Merge pull request #392 from getsentry/overhaul-flask

Overhaul Flask implementation