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.