MDL-40096 assign: Prevent js error because uniqid() is not unique.

Use html_writer::random_id instead because it incorporates a static counter.
MDL-25473 mediaplayer - prevent embedded videos from looping
MDL-43109: mod/wiki - When editing pages populate the default value for the tags input.
MDL-43306 restore: fix grade item sortorder restoration

Previously, restore was blindly inserting the old sort order into the
database, causing duplicate sortorders which lead to unpredicatble
sorting results.

Now we will use the api function to add it after the original sortorder,
this means if a duplicate exists in the original location, this item
will appear after it.
MDL-37972 Assignment: fixing settings link for upload single submissions
MDL-34321 Assignment2.2 - Fixing submission count
MDL-36984 Assign: Add redirect after saving grades
MDL-42085 Enrol: Always apply enrolment duration.

Before the fix, the startdates and duration fields were integrated to HTML code only
when the user clicked on the collapsible region to see them.
It was wrong because their values were not sent by the form
if ever the user didn't expand this Enrolment options region.
MDL-40436 block_course_list: Fix bad context resolution

We were trying to get the course context of a remote course
from a completely unrelated ID. It would sometimes work if the
ID was matching the one of a local course. In other places
we are not trying to find a context for the remote course, we
simply use the $PAGE context in format_string. So the usage
of the context has been removed here too.
MDL-43355 testing: Return the hash when HEAD points to a hash
MDL-43348 theme: html <nav> element on the wrong content.
MDL-42931 set new requirements for 2.7
MDL-34182: Add functions to warn of output in AJAX scripts

We need to be able to capture output when including contributed code as it
may add additional content which makes makes the json we output invalid.

We only warn of these errors if the site is in debugdeveloper, otherwise
we silently drop them.
MDL-34182 Repositories: Check for and warn on invalid output in the file picker
MDL-43235 behat: Ensure that behat_config_manager::get_config_file_contents() has always a behat_wwwroot
MDL-35032 mod_book: 1.9 backup restore convertis files to book area
Merge branch 'MDL-42085-25' of git://github.com/mouneyrac/moodle into MOODLE_25_STABLE
Merge branch 'w51_MDL-42931_m25_env27' of https://github.com/skodak/moodle into MOODLE_25_STABLE
Merge branch 'MDL-40436-25' of git://github.com/FMCorz/moodle into MOODLE_25_STABLE
Merge branch 'MDL-40096-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE