MDL-38065 gradebook: Fix issue with hidden categories breaking rowspan.

Hidden subcategories break the rowspan in the gradebook; this fix corrects
the calculation of the rowspan.
MDL-46133 tool_monitor: added event cleanup task
MDL-46133 tool_monitor: added unit tests
MDL-47664 phpunit: Do not use sequence number changes for Oracle

When resetting a sequence number, we call change_database_structure()
which in turns clears the MUC cache for databasemeta. This cache contains
information about the table, columns, etc.

After the cache is cleared, it must be re-filled, and it was discovered
that the get_columns() code which fills this cache can take a particularly
long time. Given that this is called for every table in Moodle, this can
add up to a significant period, and this is done on a per-testsuite basis.

On my SSD install this was taking approximately 40 seconds on each re-fill
of the cache.
MDL-47737 editor_atto: Prevent false negative when saving draft on IE9
MDL-38172 Lesson: Additional Info not displayed at end of lesson
MDL-47735 core: prevented iteration of 'groupmembersonly'

The course module variable 'groupmembersonly' was removed in 2.8.
MDL-47728 tool_monitor: added capability check before displaying link
MDL-47754 install: fix redirect loop
MDL-47735 mod_forum: added 'My profile' -> 'Forum posts' behat test
MDL-47739 form: Calendar widget causes unintentional focus and scroll
MDL-47489 core_grades: Adjust weights of extra credit items for Natural
MDL-47503 Grades: Completely remove aggregationsubcats

This setting is not compatible with combinations of aggregation methods
and the ways in which it does and does not work are not documented. It
was voted to remove it completely by the gradebook workshop, so I have
completely removed it and added a warning for all affected courses + restored
backups.
Merge branch 'MDL-47737-master' of git://github.com/FMCorz/moodle
MDL-47736 editor_atto: only save/restore draft when necessary
MDL-47489 core_grades: Adjust weights of extra credit items for Mean
MDL-47489 core_grades: Adjust weights of extra credit items for Simple
MDL-47489 core_grades: Behat tests covering contributions with extra credit
Merge branch 'MDL-38065-fix-master' of git://github.com/jmarthaler/moodle
MDL-47725 gradereport_user: Only hide grades when they were altered

The method blank_hidden_total_and_adjust_bounds() now checks for more
than just a grade change, and in that cause would hide the grade. We
added a condition to only hide the grade when it effectively changed,
not when its other properties have.