MDL-40343 forum: indent less when mobile, nested

Changes the indenting of forum replies to be relative to the width of
the parent container, so the indent decreases as threads get nested
deeper. Also reduces the indent size automatically for smaller screen
sizes.
MDL-46219 assignment: delete files when resetting assign activities
MDL-46088 Impossible to click on Atto in a Quiz in 'Secure' mode.
MDL-46088 Quiz: Prevent alert when clicking in editor in secure popup
MDL-46088 quiz secure window: further Atto JS fixes.
MDL-47183: viewhiddenactivities should use the module context

Thanks to Paulo Matos for the forum part of this change.
MDL-46712: Center EditPDF window on browser resize / zoom
MDL-41593 admin: use default setting if preventexecpath active

This resolves problems when installing Moodle
and addons when preventexecpath active.

Please note the admin_setting_configfile is still
incorrectly restricted - this will be resolved by
MDL-40949.
MDL-47564 Availability: incorrect use of defined('PHP_UNIT')
MDL-47569 backup: Escape section summary for XML

This was causing the parsing of the XML
to fail because things like & were not
escaped.
MDL-47569 backup: Do not close questions tag if never opened

This can happen when restoring quizzes that
do not have any questions.
MDL-47572 libraries: modify unittest to avoid random timing fail

Thanks to Nigel Cunningham
MDL-47583 tinymce_managefiles: correctly decode filename
MDL-47583 atto_managefiles: correctly decode filename
MDL-47594 core_accesslib: removed three useless lines of code
MDL-47431 advanced grading: correct use of frankenstyle names for consistency
MDL-44548 mod_scorm: force an external sync to check for updated files.
also remove some globals no longer needed (not used in function or in required files.
MDL-47613 wiki: allow searching several words

Thanks to Sandeep B for suggested solution
MDL-47555 core_availability: Issue with page layout & grade restriction

* Set pagelayout before getting section info, otherwise conditional activity renderers will default to the default 'base' layout.
MDL-47631 report_participation: fixed filtering by letter