Handling of Re-takes

When students are allowed to re-take the lesson, this option allows the
teacher to show the grade for the lesson in, for example, the Grades page,
as either the mean, this is average, of the grades over the first
and subsequent tries or as the grade from the students' best tries.