MDL-38144 categories are created in reverse sort order in externallib
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()
MDL-38110 cache: increased ttl unit test value to avoid timing issues
Created class coursecat, added cache definition and lang string
changed to using Sam's cacheable_object_array
coursecat: added functions make_categories_list() and get_all_parents()
usages of make_categories_list() converted to calls to coursecat
move function make_categories_list to deprecatedlib
coursecat: added functions to delete category, changes to phpdocs in other functions, lib/datalib purge cache
deprecated category_delete_move() and category_delete_full(), replaced calls to them with coursecat functions
category_delete_move() one line
coursecatlib added move(), show(), hide()
deprecated and replace with coursecat::* functions move_category(), course_category_hide(), course_category_show()
changed phpdocs to make_categories_list()
remove occurences of make_categories_list()
course/editcategory.php navigation/breadcrumb fixed
course/lib renaming move to update
course/manage renaming move to change_parent