Store config and accept init_app configuration

I'm not sure if I liked it. It has too many ways to make the same thing, maybe it is confuse.

Ref #3.