ziafazal/ability-to-set-grade-event: ability to store grades only for a specific score type

@mattdrayer @martynjames @chrisndodge . Added ability to store grades only for a specific score type to support MCKIN-2068. It can be controlled by `GRADING_ON_PROFICIENCY_SCORE` setting.