MDL-31681 added core_grade_get_definitions web service function