Start decoupling history operations from view.

Derive before/after cursor for action group from the contained actions
rather than dedicated fields. At the moment, those are simplistic and cause
some inaccuracies.