Implement initial stats for ingest/archive based on facets.

Visualise facets via d3 lib.
Add versioncreated histogram to stats.
Fix jshint warning.