Use current_app instead of hard-coupling extension to app.

This is good practice, regardless of whether Blueprints will be
supported!
Merge pull request #22 from mbr/blueprint-fix

Use current_app instead of hard-coupling extension to app.