MDL-11180 datalib: get_courses() - grab the course context as part of the select
MDL-11180 datalib: get_courses() - grab the course context as part of the select

This speeds up course & category listing enormously - cutting 2500 DB queries
for a site with 2500 courses. It's the power of the JOIN...

dilawar/moodle