Add new accumulator class.

This allows accumulating values grouped by number of events rather than
real-time.
Switch from ActionFrequency to ActionAccumulator for vertical-accounting
(survivalfly).

This should reduce false positives due to lag of any kind. Might set
event number to 3, depending on tests.