reject updates to deleted cases and change tests to reflect that

also rearranged the precedence of case doc checks to check domains before anything else
Merge pull request #91 from dimagi/case-deleted

reject updates to deleted cases and change tests to reflect that