Faster summaries

The generation of CourseSummary is now much faster because the amount of database queries is reduced from O(n) to O(1), where the n is the amount of exercises on the course.