MDL-46572 behat: extended table head look up to check if header is link

Header can be a link, this step will now look if
header has a text or header link has the text

Part of MDL-46191
MDL-46572 gradereport_history: added basic functionality behat test

Part of MDL-46191
MDL-47012 core_enrol: remove desc and fix alias from ordering
MDL-46696 backup: Include grade history in backups
MDL-46818 core_grades: added YUI form change validation
MDL-40451 block/glossary_random Fixed missing header when adding new block
MDL-47054 theme: fixed issue with the user rtl table
MDL-46428 course: Remove confirm when duplicating

A confirm dialog is given when Javascript is off but not when it is on.
This aligns the two so that they neither have a confirm when duplicating
an activity.
MDL-47122 use insert_records to improve question engine performance.
MDL-46982 core:  fixes wrong opening div tag
MDL-47107 mod_forum Optimise forum subscription checks

Supply a coursemodule where relevant to the forum subscription checks.
MDL-45602 behat: add members to cohorts
MDL-46586 files: Invalid return parameters definition in core_files_get_files external function
MDL-46254 theme: apply filters to theme footnote
MDL-43739 block_course_overview: allow resorting of big number of courses

previously an exception was thrown if the user preference exceeds 1333 chars
Merge branch 'MDL-46818_master' of git://github.com/markn86/moodle
MDL-47014 airnotifier: Missing require of filelib.php
Merge branch 'wip-MDL-46254-master' of git://github.com/marinaglancy/moodle
Merge branch 'MDL-47014' of git://github.com/jleyva/moodle
Merge branch 'MDL-46982' of https://github.com/shashirepo/moodle