MDL-37903 cache: implemented cacheable_object_array
MDL-37009 Use renderer in print_remote_course(), print_remote_host()
MDL-37009 functions responsible for printing courses lists use renderers

- Functions print_course_search(), print_course(), print_my_moodle() are completely moved to renderers and deprecated
- Function print_courses() now call renderer to produce output
- Added function course_get_coursecontacts() retrieving contacts for particular course
MDL-37009 Moved print_xxx functions to deprecatedlib

Deprecated functions code is moved from course/lib.php to lib/deprecatedlib.php:
print_course(), print_course_search(), print_remote_course(), print_remote_host(),
print_my_moodle()
todo deprecate
course_category, retrieve functions
first attempt to work with MUC, class coursecat
changed to using Sam's cacheable_object_array
MDL-37009 function move_categories_list() is moved to class coursecat
MDL-37009 move function make_categories_list to deprecatedlib