adding support for action logs in persistence

adding serializer and deserializer for action logs
fixing some other related things
adding numeric aggregation support

The mongo presistence supports the numeric aggregation.
It first looks in the db (in a self managed table), whether
or not an aggregation for that property with that filter already exists.

The current implementation assumes that the clearCache() method will
be called every time the data is updated.