Modularised tag counts.
Change "filter_map" to "allowed_filters", and convert to a simple arrary.
Restore hierarchical tags, and make more general.

Fix JavaScript so that charts respect filters.