MDL-40697 core_grades: trigger the grade_created/updated/deleted events
MDL-40697 core_grades: added unit tests for grade_created/updated/deleted events