Added a User model to the master api, renamed default master db.
Refactoring code in progress.
Reorganize code, removed Flask-Script and manage files to make the setup for user simpler.
master api models refactored out into separate file.
Corrections in slave api, small changes in master api
Issue #29 seems to be solved. But why do I have to set app.app_context() whenever a db query is performed outside a direct view function.
Refer issue for details.