Merge pull request #5143 from Srokap/ticket_5142

Fixes #5142 - Displays correct group visibility access on group edit page
Fixes #5090: Possible to register js as shimmed AMD module
Merge pull request #5150 from ewinslow/amd-shim-b5090

Fixes #5090: Possible to register js as shimmed AMD module
Pulled out shared code between events and hooks into ElggPluginAPIService and added ElggEventService. Added tests for all.
Fixes #5147. Wired up ElggEventService.
Merge pull request #5161 from Srokap/ticket_5140

Fixes #5140 - Adds elgg.get_simplecache_url(type, view) in JavaScript
Merge pull request #5159 from brettp/i5147_ElggEventService

Fixes #5147: Adds event service
Fixed developer's tools.
Merge branch 'i5147_ElggEventService'
Refs #5161, #5140. Fixed coding style.
Fixes #5162. Not encoding URL in elgg_http_remove_url_query_element().
Fixes #5162. Not encoding URL in elgg_http_remove_url_query_element().
Fixes #5114. IE 7 and 8 forward to the embed items list after an upload.
Fixes #5066. Empty subtypes are handled the same way for both 'subtype' and 'subtypes'
Fixes #5066. Empty subtypes are handled the same way for both 'subtype' and 'subtypes'
Fixes #4977. Switched to ElggBatch for group ownership transfer.
Fixes #4977. Switched to ElggBatch for group ownership transfer.
Merge branch '1.8'

Conflicts:
	engine/handlers/cache_handler.php
	engine/lib/user_settings.php
	js/lib/languages.js
	mod/tinymce/vendor/tinymce/changelog.txt
	mod/tinymce/vendor/tinymce/examples/full.html
	mod/tinymce/vendor/tinymce/examples/lists/media_list.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/langs/en.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/autolink/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/autoresize/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/autosave/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/directionality/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/emotions.htm
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/fullscreen/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/lists/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/media/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/media/js/media.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/searchreplace/searchreplace.htm
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/style/css/props.css
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/style/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/style/js/props.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/style/langs/en_dlg.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/style/props.htm
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/tabfocus/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/table/js/cell.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/table/js/row.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/table/js/table.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/table/row.htm
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/plugins/wordcount/editor_plugin_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/color_picker.htm
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/editor_template.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/editor_template_src.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/icons.gif
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/js/anchor.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/js/color_picker.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/js/image.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/js/link.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/js/source_editor.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/langs/en_dlg.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/dialog.css
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/ui.css
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/dialog.css
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/highcontrast/ui.css
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/ui.css
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/themes/advanced/source_editor.htm
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/tiny_mce.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/tiny_mce_popup.js
	mod/tinymce/vendor/tinymce/jscripts/tiny_mce/tiny_mce_src.js
	views/default/input/pulldown.php
Fixes #5148 - Pulls actions code out as Elgg_ActionsService
Refs #5148 - Removes obsolete private API documentation