support for init_app (flask extension pattern)

Hello sashka,

I implemented the init_pattern to the project. This method is provided by almost every plugin and I thinks it's really useful.

Thanks and good work.