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

Add create_app app factory.