Check&Set total events

Solves #611 for checking the consistency of the total_events from available stat in previous request.
Solves #667 for setting that value in chain validation.
Anchor to fic the value according to #623 in toggling validation approval (before runtest).