[analysis] Add dates filters to territoriality analysis

In addition, the performance has been improved removing
not actually useful subqueries
[metrics] Add npeople option to MetricFilters class
Merge branch 'master' of https://github.com/VizGrimoire/GrimoireLib