Adds a management command and a celery task to delete orpahed files or removed documents. Fixes #2291 (#2818)