Fix deletion of couch documents

Delete the fields in the document before commiting with _deleted = True,
make sure that WorkQueue replication replicates the deletion but avoids
creating deleted documents from other queues. Ensure the same in
WMStats.
Merge pull request #4424 from dballesteros7/fixDocDeletion

Fix deletion of couch documents