Move the 500 error handler over to flask_app.py
This is needed because of this Flask error:
AssertionError: It is currently not possible to register a 500 internal server error on a per-blueprint level
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org></patrick@puiterwijk.org>