Fix bug: orphaned courses and units not being handled correctly.
Merge branch 'develop' of github.com:iandavidwild/moodle-block_course_level into develop
Improvement: ual_api is now a singleton.
Merge branch 'develop' of github.com:iandavidwild/moodle-block_course_level into develop