importing DocumentManager from dbmanager now automatically registers all the docclasses and viewclasses
import Dispatcher now automatically registers the job data
importing Worker from worker will now also register the consumers .. as with the other commits
change name of start to process_async
create BaseDispatcher and CalledDispatcher.
some fixes from changes in other places.
at initialisation time dispatchers are created for every job that can run.
unit tests for dispatcher