MDL-41985 JavaScript: Add option to filter YUI logging statements
MDL-41986 JavaScript/Dock: Correct log level in Y.log statements
MDL-42026 Atto: Remove the styles from the headings menu + focus when opened
MDL-41761 statistics should be calculable for last or highest attempts

as well as for first or all attempts.

This commit drops a database table and then recreates it. This is in
order to be able to have some new columns in the table be NOT NULL with
no default value, which would not be possible if I added fields to an
existing table.

The quiz_statistics table is used for caching calculated values only
and thus we can safely drop it and recreate it.
MDL-41908 QuickForm: Fix PEAR Non-static method error
MDL-41956 messages: Accept attachments in send_message() in email message provider
MDL-42072 badges: Fix output and headers in badges ajax scripts
MDL-40962 assign: Fix alternate name field warnings in assign
MDL-32570 enrol_imsenterprise: don't hardcode default category id
MDL-41967 - Gradebook: Fixed an sql syntax error for gradebook custom profile fields.
MDL-41659 badges: Display course/site names through format_string()
MDL-25176 forum Redirects for new discussions shouldn't use SESSION

Unset the session->fromdiscussion var, because we know that the correct
path will be computed later.
MDL-40493 User preference: Allow users to set their preferred text editor.

This changes the setting htmleditor in the user table from a 0 or 1 column
to a user preference for the name of their preferred html editor.
MDL-40844 - Activity completion: Update of the sql to include additional name fields.

The activity completion report wasn't showing the additional name fields.
MDL-42089 - Administration: Update to sql to include alternate name fields.
MDL-41347 tool_uploadcourse: Invalid restore value handled
MDL-41230 tool_uploadcourse: Prevent max_execution_time issues
MDL-42122 block_community: Dont show install option without capability
MDL-40046 events: Replace add to logs in mod page with events
MDL-23692 forgotpw: Move functionality to lib.

Move the password reset request handling into a function.
Move the password reset confirmation handling into a function.