Move app instance specific code to app.py

  Move all application instance specific code(like creating the application and
a database connection - which is pertaining to a fixed instance) to an exernal
app.py.
This makes the db and api modules even more modular and can imported in test
code with a different database etc.
Forgot to add the app.py in the previous commit

  Adding now
Merge branch 'master' of github.com:vlead/dataservices

Resolve Conflicts:
	src/api.py