Hiding expired courses for regular students.

Made as part of redmine #4244.
Crude hackery, but seems to work in testing...
Mass course end setter

This is pure voodoo, but appears to work correctly.