MDL-34530 Calendar: Can create an event for any group, but cannot view
it
MDL-30545 messaging prefs: show all relevant message providers.

Some message providers have an associated capability. For example
the mod/quiz:emailconfirmsubmission capability. At the moment,
we only show the preferences for the capabilities that the user
has in the system context.

That does not work for the example capability above. Typically
the capability will be overridden in one quiz, to allow for
Students, and the user will have the Student role in the course
context. Therefore, this message type does not appear on the
preferences page.

This fix corrects the logic, so that all message types that are
to the current user are displayed.
MDL-30545 messaging prefs: add Andy's extra unit tests.
MDL-36168 SCORM: fix reset of course completion settings.
MDL-35737 SCORM: when scorm_parse is called and external scorm manifest use always update the package.
MDL-35530 Lesson Module: Add question text to facilitate grading
MDL-29733 grade: Query for Identifying Grade Grades to Precreate is SLOW
MDL-29733 grade: SQL and comment cleanup
MDL-26660 libraries: Do not try to parse non-valid XML
MDL-30871 enrol: Flat file does not fail when notifications are enabled
MDL-35358 Lesson Module: fixed teacher grade essays display when lesson is only available for group members only
MDL-36289: Assignment - Prevent feedback files being copied to the next user when using "Save and next".

Conflicts:

	mod/assign/feedback/file/locallib.php
MDL-36022 AJAX Remove shim on chooser dialogues
MDL-26439 core_message: switched the message search over to displaying smallmessage instead of fullmessage which contains boilerplate we dont want
MDL-36162 core_message: removed the unnecessary and confusing course URL parameter as well as fixing the broken breadcrumb
MDL-34695 wiki: ensure the correct individual subwiki is used/created for a user
MDL-36238 Blocks: Logs page close session write, so editing is set before
MDL-34520 gradebook: Missing droplow setting in gradebook backup
MDL-34695 Wiki Module: add prevention to create new record when userid is 0
MDL-36025 qtype calculated: Fix handling of "-0"