Implement the archive delete API endpoint.

Also fixed tests not properly skipped in the case Mongo
has no JS support, and improved the test separation
when counters are exercised.
Didn't we agree TODO needed bug numbers when reviewed?  Or was that just XXX?