CONTRIB-926 Course reset plus more grade features.

Signed-off-by: Joseph Rézeau <moodle@rezeau.org>