Tests refactoring start
New manage.py due to deprecations in Django 1.4
Closes #827 Allow marking a document as 'deleted'