TermAndCourseTreeView: return CourseSelection, not just Course

This handles the possibility that a module of a course is selected,
rather than the entire course.
when a module is selected, only show problems in that module