adding cached histogram jobs

extending the MongoPersistenceLayer to support
Histogram retrieval. The results are cached based on the filter.
The cached results are cleared with cache.
Deprecating the old HistogramJob