Allow instantiation without app and db, useful for application
factories.
Merge pull request #7 from allisson/master

Allow instantiation without app and db, useful for application factories.