MDL-8323 finished full conversion to proper $COURSE global - no more $CFG->coursethem...