MDL-30085 core_grade: added a grade web service
MDL-30085 cleaned up of grading external API