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-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-47107 mod_forum Optimise forum subscription checks

Supply a coursemodule where relevant to the forum subscription checks.
Merge branch 'MDL-46428_master3' of https://github.com/Syxton/moodle
Merge branch 'MDL-47107-master' of git://github.com/andrewnicols/moodle
Merge branch 'm28_MDL-47054' of git://github.com/totara/moodle
MDL-40356 lib: Added a new setting to display more information from the fullname function.
MDL-40356 lib: Unit tests for the alternativefullnameformat setting.
MDL-46834 filepicker: dnd upload should respect the current context id
MDL-46834 dndupload: Hide dnd message when user cant upload files
MDL-46696 backup: Handle older backups not containing grade history
MDL-47076 badges: Add checks to user fields during badges restoration

Change-Id: Iff6402d1da835ed57dc17d079adf1bbd2e76dd6c
Merge branch 'wip-MDL-46834-master' of git://github.com/marinaglancy/moodle
Merge branch 'MDL-46696-master-fixup' of https://github.com/FMCorz/moodle
Merge branch 'MDL-46572_master' of https://github.com/markn86/moodle
MDL-47080 theme: call format_string on site shortname
MDL-46997 Grades: Improve the behat tests for grade aggregation

The tests now cover hidden grades in sub categories for all aggregation types. This change
includes a data generator for grade categories, with unit tests and behat tests for
the generator.