Move app blueprint definition to app.py