Courses.php cleanup

Deleted the obsolete code that was confusing everyone yesterday; added
some comments. Everything in this file should actually be relevant now.