Added to the grade_sets routine so that gateway quizzes can also have their grades returned
(e.g. to Moodle for replacement in the moodle grade book). The routine selects the grade
of the most recent version of a gateway test to use for the grade. It would be desirable
to have an option to return the maximum grade of the gateway test versions taken.