ee952d6556
This creates a new hook which is dispatched when a quiz attempt is set to a new state, or deleted. This is then used by quiz_statistics to trigger a recalulation, replacing the old event observer (for submissions) and class callback (for deletions).