Use current_app instead of hard-coupling extension to app.

This is good practice, regardless of whether Blueprints will be
supported!