Finalise removal of decaf_require_login functions

This fixes the error seen when attempting to view a self-enrollable course
which you are not yet enrolled in.  The expansion code is also now tidier
and more reliably populates My Courses and Courses branches.