MDL-45803 mod_quiz: added attempt snapshot for the attempt and preview started events
MDL-45803 mod_quiz: prevented the attempt_started event from being triggered twice
MDL-45803 mod_quiz: removed the function quiz_fire_attempt_started_event