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.