MDL-37598 Proceed full setup in YUI serving files if needed

When serving Moodle YUI files, including just moodlelib.php is not enough
any more. We need the full setup in order to use MUC.