[Reviewed] Use StudentData.grades_for_assignment in syllabus.

Use StudenData.grades_for_assignment in syllabus instead of executing a
query, making a trip to the database.

Closes #457.