Renamed classes to courses.

This avoids a conflict with the PHP reserved word 'class'. Also it is more in line with the course-section convention.
Updated return type on model relations.