MDL-41045 course_add_cm_to_section should not test for sections unless necessary
MDL-27655 improve purge all caches.

If you click the link in the page footer, then it will reliably
redirect you back to the page you were on after purging the caches.

If you go to the purge all caches page in the admin menu, it shows you a
purge button, with no cancel button. Clicking the button purges the
caches and takes you back to the page with the button.
MDL-31487 fix FEATURE_CONTROLS_GRADE_VISIBILITY for quiz.

This is a followup to MDL-18301. That fix missed the following points:

1. On the edit categories and items screens, all items had an eye-con to
control the visibility, even if the visibility was controlled by the
module.

2. Changing the visibility of a grade category change the visibility of
all items within it, even if the visibility was controlled by the
module.

3. The quiz ingored $cm->visible when controlling whether its grade item
was visible.
MDL-40996 quiz show user pic should also show name.

This was a regression introduced by MDL-20636 two years ago!
MDL-30895 switch from dl tag to table in the accessible chat
MDL-41091 questions: fix get_all_submitted_qt_vars for unit testing.
MDL-35934 Filemanager: add aria attributes for editing file/folder.
Add unique reference ids

Conflicts:

	files/renderer.php
	mod/data/field/file/field.class.php
	mod/data/field/picture/field.class.php
MDL-35934 Filemanager: update set focus attribute.
Also limit the display string for the dialog header to fit nicely on mobile devices
MDL-35934 filemanager: Add new string for edit
MDL-41033 Filepicker: add ARIA attributes for selecting file in a modal
MDL-38344 Calendar: converted name field in event table to text

There is no limitation on length of event name in RFC-2445, so changing type
for name from char to text.
MDL-30001 WEBCT Import does not work for 2.0
MDL-39691 Lesson - Email graded essays not working
MDL-35934 Filemanager: change the set attribute to use setAttribute() instead of YUI set().
Merge branch 'wip-mdl-38344-m24' of git://github.com/rajeshtaneja/moodle into MOODLE_24_STABLE
Merge branch 'MDL-30001_24' of git://github.com/jmvedrine/moodle into MOODLE_24_STABLE
Merge branch 'MDL-27655_24' of git://github.com/timhunt/moodle into MOODLE_24_STABLE
MDL-39507 questions: fix pluginfile URLs before format_text.
MDL-39507 questions: fix pluginfile URLs before format_text.

This commit build's on Jean-Michel's work, tidying up a few lose ends.
Merge branch 'MDL-35934_m24' of git://github.com/rwijaya/moodle into MOODLE_24_STABLE