Various improvements towards a working celery backend.
Still much to work on.