Fix and unit tests for the 'resurrected document' case:

Allow 'createDocumentFromRevision' to succeed when the winning
revision has been deleted; in this instance the new revision is rooted
at the current winning revision.
Merge pull request #46 from cloudant/36689-resurrected-document

Correctly handle resurrected documents