Fix dangerous use self.app in init_app and test refactoring.
Allow custom config.
Ignore app config if passed explicit config.
Merge pull request #116 from mtsgrd/master

Fix dangerous use self.app in init_app and test refactoring.