Complete issue #121

- Port fix for issue couchbase-lite-android#301
- Port DocumentTest.TestPutDeletedDocument()
Merge pull request #146 from couchbaselabs/issue-121

Complete issue #121