Mongodb

This is the changes I've made to support pulling images for display from a MongoDB server rather than assuming they're available on the local filesystem. Note that the MongoDB support is optional: if it's not enabled in the settings, it should run fine on a system which doesn't have PyMongo installed.

This requires the changes I've recently merged to master in the ``transientskp/tkp`` repository.