Update dependencies.

Fix typo.
Fix imports.
Add create_app app factory.
Merge pull request #1 from sthoma/app_factory

App factory