MDL-47556 quiz: autosave should default to on for new installs
MDL-46647 grades: Fix fetch_all_helper() towards cross-db

That helper, used to fetch information from DB by all the grade_object
chidren classes was not behaving properly handling TEXT/CLOB columns.

Instead of creating a property within every class listing the
existing columns, it seems to be a better solution to instrospect
the database metadata (cached) to ensure the correct SQL is generated
in every case.
MDL-46647 core_grades: Adding tests for fetch_all_helper()
MDL-47509 Profile restriction: Broken Oracle causes problem
MDL-47509 Profile restriction: More oracle/text fixes

1) Get rid of "uid" that is a reserved word.
2) Add cross-db support for text columns in the get_condition_sql() method
   by adding a new, defaulting to false for BC param and intensively using
   the sql_compare_text() helper to build the correct sql fragments.
MDL-46284 tool_messageinbound: Fail with warning if handler disabled

If a handler is disabled, the user should be informed of this issue.

This issue is a part of the MDL-47194 Task.
This issue is a part of the MDL-39707 Epic.
Merge branch 'MDL-47194-master-fixes' of git://github.com/andrewnicols/moodle
MDL-46921 User: Add @core_user to new behat test.
Merge branch 'MDL-46647-master' of git://github.com/FMCorz/moodle
Merge branch 'MDL-47509' of https://github.com/stronk7/moodle
MDL-36014 cohorts: fix error in SQL query
Merge branch 'MDL-47556' of git://github.com/timhunt/moodle
MDL-46481 backup: Ensure one-click backup is not displayed on restore
Merge branch 'MDL-46481-master-fixup' of https://github.com/FMCorz/moodle
MDL-43089 quiz editing: fix RTL

As part of this, I tweaked the LTR style a bit, in a way that is both an
improvement (I hope) and also to reduce the amount of RTL-specific code
required. (Thanks to Fred for spotting some of the problems.)

Also, I changed one course style in boostrapbase, where the RTL rule was
different from the LTR rule.

Finally, I saw some repeated RTL rules in the quiz styles.css, and so
eliminated the the duplicate rules.
MDL-43089 quiz editing: fix some qbank popup JS issues.
MDL-47489 core_grades: Adjust weights of extra credit items for Natural
MDL-47489 core_grades: Adjust weights of extra credit items for Mean
MDL-47489 core_grades: Adjust weights of extra credit items for Simple