MDL-40230: New Outcomes System

Configuring New and Legacy versions of Outcomes

* New outcomes system now toggles with $CFG->core_outcome_enable
* Added a new admin setting to toggle both $CFG->core_outcome_enable and $CFG->enableoutcomes
* Renamed old outcomes system to "Legacy outcomes" to avoid confusion if both are enabled

Outcome administration and mapping

* Added outcome as a core subsystem
* Added core_outcome to phpunit.xml.dist
* Added basic CRUD for outcome sets and their outcomes
* Added unit tests for most everything under outcome/classes/
* Added mapping of outcome sets to courses
* Added mapping of outcomes to questions
* Added mapping of outcomes to activities
* Added mapping of outcomes to rubrics
* Added new event: question_edited - fires on question edit
* Added new form element (MoodleQuickForm_map_outcome) to map outcomes to content
* Added new form element (MoodleQuickForm_map_outcome_set) to map outcome sets to a course

Outcome Set Import and Export

* Added Achievement Standards Network (ASN) outcome importer
* Added General Moodle export of outcome sets
* Added General Moodle import of outcome sets
* Added Academic Benchmarks outcome set import plugin

Outcomes attempts and marking

* Added outcome attempts to rubric
* Added grading form outcome attempt support for mod/assign
* Added course reset support for grading forms in mod/assignment and mod/assign
* Added default activity outcome attempts (Syncs with grade item)
* Added recording of outcome attempts from question attempts
* Added $CFG->enableoutcomes checks
* Added a link to new outcomes under course administration
* Added course outcomes overview screen
* Added course outcome marking table

Outcome backup and restore

* Added backup and restore of outcome areas in questions, activities and rubrics
* Added backup and restore of outcome used areas and outcome attempts
* Added backup and restore of course used outcome sets
* Added backup and restore outcome marks and marks history

Outcome course reports

* Added course Activity and Performance report
* Added course Unmapped Content report
* Added course Coverage report

Other

* Added support for namespaced classes in formslib
* Added question_updated event
MDL-40230 core_outcome:added the outcome_set id to the backup