create device scheduled jobs view

 export couchdb instance
create BaseDoc and DeviceDoc class for managing device documents and documents in general. beginnings of a true entity manager
pull in view functions from other parts of app and export them from here
pick up dispatchers from database instead of having them hard coded.
change dispatchers so that they are created from a given 'job' which exists as configuration information in the database. each device has a jobs collection.
moved jobs from app tree into this module. refactored jobs to use the new dbmanager module.
worker doesn't need database anymore, just needs connection to rabbit.

any database instance comes from the dbmanager module.
made consumers use dbmanager module instead of talking to database directly.
couchdb ext no longer required. all database stuff is in dbmanager.
made controller use dbmanager module. 'views' and 'models' no longer needed. this module will now be purely controllers.

the 'model' is in the dbmanager and worker modules.
these are not spelling mistakes.
remove circular import.
set ping interval when creating ping job when adding device.
get rabbitmq connection inside jobs module. no need to do it in the module init. doesn't work anyway
config
defined rabbit inside consumers.py and removed it from __init__.py

must remember not to try and import things from 'parent' files
created some todos