MDL-37646 Assign: Quickgrading fix when using grading filters or lots of students.
MDL-37710 Assign: Fix pluginfile permission checks for student viewing their own team submission.

This change adds a function to the assign class to allow the permissions for a group submission
to be checked and updates all the submission plugins to call it.

Conflicts:

	mod/assign/locallib.php
	mod/assign/submission/file/lib.php
	mod/assign/submission/onlinetext/lib.php
MDL-37785 theme_base: remove duplicate .dir-rtl file-picker css rules from styke/core.css
MDL-37781 Check for switching the workshop phase without waiting for cron

Now we are checking for the need to switch the phase when the main
view.php is displayed to any user (previously this was done via cron
only). To give our subplugins (such as the scheduled allocation method)
a chance to do what they need to do, the workshop_viewed event is
triggered before the phase is actually switched.
MDL-37781 Allocate workshop submissions without waiting for cron

Now we are checking for the need to execute the allocator every time the
main view.php is displayed to any user. Previously this was done by cron
only.
MDL-37775 theme_canvas: Changed ADD a block from center align to left in style/blocks.css
MDL-37746 qtype_shortanser: avoid normalizer_normalize dangers.

When an error occurs, normalizer_normalize just silently returns null,
which is dangerous. Here, we wrap it in a safe helper function.
MDL-36322 Errors when updating a Moodle instance with some misconfigured cache stores
MDL-36322 cache: cache stores now test connections during construction
MDL-36322 cache: clarified docs for initialise and construct
MDL-36322 cache: implemented cache_store::create_clone
MDL-32076 core_grade: fixed ajax handling of unlimited grades and added some unit tests
MDL-37357 core_grade: fixed the showing and hiding of rank on the overview report
MDL-37635 Assign: Prevent errors when viewing a feedback for an assignment with no gradeitem in gradebook

Unit tests removed from backport to verify that:
Feedback is visible even if there is no grade
The grade is not shown if the gradeitem is hidden unless you have mod/assign:grade capability

Conflicts:

	mod/assign/locallib.php
	mod/assign/renderer.php
	mod/assign/tests/locallib_test.php
MDL-37800 mod_feedback - item "information" does not appear correctly
MDL-37566 AJAX Only set max-height for chooser dialogues

If we set height as well as max-height then there is a potential for
whitespace to be shown at the bottom of the list of choices.

This commit stops removing the height option so that we only rely upon
max-height for dialogue heigh calculation.
MDL-37574 Remove default link title from navigation items
MDL-36800 SCORM: Fix Yui().use calls - thanks to Nancy Cheng for the fix
MDL-29207 SCORM: Auto-continue doesn't work with Pre-req due to JS errors
MDL-29207: SCORM prereq callback is pure js - move it to module.js so it can be cached better.