Added the init_app method.

The init_app method is useful in flask apps with app factory pattern.
Merge pull request #2 from tonyseek/app-factory

Added the init_app method.