MDL-42072 badges: Fix output and headers in badges ajax scripts
MDL-25176 forum Redirects for new discussions shouldn't use SESSION

Unset the session->fromdiscussion var, because we know that the correct
path will be computed later.
MDL-41229 Filepicker: ie9 css - the picker content were displayed outside the picker
MDL-42013 behat: Fixing problem with should not see

Using 'should see' outputs rather than an incorrect
xpath query. Also our custom selectors are not properly
used by WebAssert so switching to find xpath.
MDL-42013 behat: Fixing related tests

We had no false positives because of this
issue, but some checking have been restricted
to specific DOM parts.
MDL-41215 Filepicker: Fix issues with dynamic loading on fullscreen filepicker
MDL-41197 ignore all problems when converting texts
MDL-41914 New table user_devices
MDL-42040 refactor core Moodle shutdown handlers logic
MDL-41914 New webservice core_user_add_user_device
MDL-41611 format_singleactivity: Ignore unsupported modules
MDL-41611 format_singleactivity: Only hide unnecessary elements
MDL-41611 mod_forum: Display inline available when supported
MDL-41611 mod_quiz: Offer to return to course when supported
MDL-41220 fix test_get_plugin_list_with_file
MDL-37717 warn teachers before disabling or deleting their enrolment method
MDL-31830 core_course: new course category management interface

* Implemented a new course and category management page.
* Deprecated the old management interface.
* Unit tests to cover the new API and core functions.
* Behat tests to cover the new interface.
MDL-31830 course: added behat test of category creation
MDL-31830 course: several small code improvements

* I can rebase this for you/the integrator before it goes in for sure no probs :)
* Fixed double phpdoc block of course_change_visibility
* Moved permission checks out of course_move_after_course and into helper function.
* Reviewed setType calls for editcategory_form.php.
* Reviewed all uses of can_resort and added more specific methods.
* Fixed method mentioned in exception for resort methods.
* Converted calls to fetch courses to call get_course.
* Exceptions now thrown when trying to move courses and problems arise.
* Fixed unnecessary namespace hinting in core_course_management_renderer.
* Abstracted common logic of can_resort_any and can_change_parent_any.
* Removed check for system level capability from has_manage_capability_on_any.
* Reviewed debugging calls I've introduced.
MDL-31830 course: renamed functions for consistency

* course_move_by_one => course_change_sortorder_by_one
* course_move_after_course => course_move_after_course
* helper::action_course_move_after_course  => helper::action_course_change_sortorder_after_course
* helper::action_course_moveup 		   => helper::action_course_change_sortorder_up_one
* helper::action_course_movedown 	   => helper::action_course_change_sortorder_down_one
* helper::action_course_moveup_by_record   => helper::action_course_change_sortorder_up_one_by_record
* helper::action_course_movedown_by_record => helper::action_course_change_sortorder_down_one_by_record
* helper::action_category_movedown         => helper::action_category_change_sortorder_down_one
* helper::action_category_movedown_by_id   => helper::action_category_change_sortorder_down_one_by_id
* helper::action_category_moveup 	   => helper::action_category_change_sortorder_up_one
* helper::action_category_moveup_by_id     => helper::action_category_change_sortorder_up_one_by_id
* coursecat::move_by_one 	           => coursecat::change_sortorder_by_one