Because the current tag implementation is based on a mix of Nuxeo Core and Hibernate, it's hard to make it efficient, and there are transaction/session problems when using Tomcat.
-> Re-implement tags based on placeless documents managed by the Core, and a specialized QueryMaker for the queries that cannot be expressed in NXQL (aggregates and count for the popularity cloud).