MDL-31836 moodlelib: removed legacy encryptkey support
MDL-39954 core: Abstract event assessable_submitted & assessable_uploaded
MDL-39954 mod_assign: add_to_log can return an array of parameters
MDL-39954 mod_assign: Replace old-style event assessable_submitted
MDL-39954 assignsubmission_file: Replacing old-style events_trigger
MDL-39954 assignsubmission_onlinetext: Replacing old-style events_trigger
MDL-39954 mod_forum: Replacing old-style events_trigger
MDL-39954 mod_workshop: Log method can return array of parameters
MDL-39954 assignment_online: Replacing old-style event_trigger
MDL-39954 assignment_upload: Replacing old-style event_trigger
MDL-39954 event: Delocalise get_description
MDL-39954 event: Changing get_legacy_eventname to public static
MDL-39851 javascript: Full screen dialogs on small screens

This change adds support to M.core.dialogue for showing fullscreen
dialogs on small screen sizes. There are 2 new configuration values that
can be set to control this when creating a dialog (responsive and responsiveWidth).

Setting responsive to false will disable this functionality completely (old behaviour).
Setting responsiveWidth controls the screen width that the dialog will switch to
fullscreen mode. Try not to think of the device that will be accessing the dialog,
but the width at which the content of the dialog needs to be displayed differently.

The activity chooser and the filepicker are the two dialogs that have been converted
in this patch. The filepicker first had to be converted to use M.core.dialog and not
Y.Panel.
MDL-39851 forms: Convert filemanager popups to M.core.dialogue
MDL-39851 filepicker: Fix for toolbar display wrapping on small screens
MDL-39851 M.core.dialogue: Various fixes

Items addressed
* Get rid of custom attribute srcNode
* Change extraClasses to a config only parameter.
* Change attribute fullscreen to a method.
* Restore the original window overflow value.
* Use setStyles instead of setStyle for performance.
* Tinymce end the zindex wars
* Prevent fullscreen dialogs in an iframe (tinymce managefiles plugin).
* tinymce: Cross browser fix for zindex on popups
* Use CSS for overflow changes (easier to keep track of the previous state).
* Fix Coding style for css changes
MDL-39507 qtype_essay: hacky fix for unit tests

This is just to get the tests passing for integration purposes. Tim
may want to do a robust fix and revert this.
MDL-40668 tinymce: Remove collapsable editor options

We have an alternative (pdw toolbars)
Also, allow tinymce to be collapsed down to a single row.
Merge branch 'MDL-39851-master-squashed' of git://github.com/damyon/moodle
Merge branch 'MDL-40668-master' of git://github.com/damyon/moodle