MDL-47603 quiz edit: qbank popup preview icon needs new window

Also, ensure that clicking the + icon adds the question on the right
page.

Bit of this fix are a bit hacky, but we have to deal with the fact there
is not a good general solution to MDL-47604.
MDL-46819 core_grades: Negative weights are changed to 0

Negative weights in the natural aggregation are not currently permitted.
Any figure below zero is changed to a zero.
MDL-46546 core_grades: Notice display for bad import.

If the initial import of csv data is bad, a notification
will be displayed to the user.
MDL-47140 editor_atto: Improved error handling
Merge branch 'MDL-47140-master' of git://github.com/gurgus/moodle
Merge branch 'wip-MDL-46546-master' of git://github.com/abgreeve/moodle
Merge branch 'wip-MDL-46819-master' of git://github.com/abgreeve/moodle
Merge branch 'MDL-47603' of git://github.com/timhunt/moodle
Automatically generated installer lang files
MDL-46151 cachestore_memcache: now checks extension version for support
MDL-47617 behat: Fixed behat sorting failure

Postgres and MySQL treat values that are null differently
when sorting. MySQL will sort null values above fields with
values and Postgres will be vice versa. I removed the checks
against the Admin User.

Oracle treats lower case values different to upper case values
and so I have modified the test so that all Names start with
an Uppercase letter.
Merge branch '46151-28' of git://github.com/samhemelryk/moodle
MDL-47189 my: Fix the addition of default blocks to my/ page

Fixing the upgrade script so that they attach the new blocks
to the right my_pages entry. An upgrade script has also been
added to fix the existing bad data.
MDL-47189 my: Update test to check that existing blocks remain after add

Specifically checking for strings in the blocks because the tests
passed when looking for the string anywhere.
MDL-47649 csvlib: must not leave files open

I added a destructor to csv_import_reader ensure the file is closed.

I also ensured that the gradeimport_csv unit tests did not hold onto a
reference to the csv_import_reader object while the phpunit framework
tries to tidy up moodledata.

Finally, to stop CiBoT complaining, I fixed up the PHP4-style
declarations in the CSV import class.
Merge branch 'MDL-47189-master-2nd' of git://github.com/FMCorz/moodle
MDL-47140 atto: improved wording of error message
Merge branch 'MDL-47649' of git://github.com/timhunt/moodle
Merge branch 'wip-MDL-47617-master' of git://github.com/abgreeve/moodle
MDL-46235/MDL-46971 mysql_compress_rows: fix typo