MDL-30085 core_grade: added a grade web service
MDL-30085 core_grades functions moved to correct location