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-47431 advanced grading: correct use of frankenstyle names for consistency
MDL-47646 CURL redirect unit test: handle broken servers
MDL-47575 gradebook: Show weights and contribution by default.
Merge branch 'MDL-47575-master' of git://github.com/zbdd/moodle
MDL-38732 gradereport_grader: Undefined variable in unit tests
Merge branch 'wip-MDL-47583-master' of git://github.com/marinaglancy/moodle
Merge branch 'wip-MDL-47572-master' of git://github.com/marinaglancy/moodle
Merge branch 'MDL-47646' of git://github.com/timhunt/moodle
Merge branch 'master_MDL-47431' of https://github.com/danmarsden/moodle
Merge branch 'MDL-38732-master-2nd' of git://github.com/FMCorz/moodle
MDL-47243 behat: Add data generators for gradeitems scales and outcomes
MDL-47243 core_grades: Add weight settings to outcome edit page
MDL-47243 core_grades: Allow extra credit on outcome grade items
MDL-47243 core_grades: Add behat tests for outcomes in Natural
MDL-47392 core_grades: Consolidate grade item weight setting location