MDL-45379 badges: removed unnecessary tables from renderers

Signed-off-by: Yuliya <yuliya.bozhko@gmail.com>
Signed-off-by: Brian Barnes <brian.barnes@totaralms.com>
fixed download button
MDL-45833 event: Removing courseid as the context is higher than course context
MDL-46118 report_log: No results limit when downloading
MDL-46044 Assign: Update unit test to test multiple attempts on overview page
MDL-46044 Assign: Fix print_overview function when there are multiple attempts
MDL-46044 Assign: Move common setup to setUp method (share it for all of lib_test.php)
MDL-46044 Assign: Modify myhome query to only use the maxattempt from the submission

Using mismatches from the submissions/grades tables does not make much sense, we
should always only consider only the maxattempt from the submissions table.
MDL-46044 Assign: Add conditions to the inner query for performance
MDL-45641 event: Option to trigger user event manually

On some pages full user data is not stored before user_created/
user_updated event is triggred. So giving option to trigger that
manually, so it can be triggred after all data is saved
MDL-45641 event: Removed multiple user_updated event trigger

user_updated event was being triggred while
setting password, which is not correct. It now
trigger user_password_updated event. Few more
modifications done:
1. Correct event is being triggred.
2. Event is only triggred when password is chnaged.
3. Password is updated via single api.
4. Updated unit test
MDL-45641 event: Manually trigger event where needed.

Some places, user_created_user and user_updated_user
events should be triggred after profile data is saved.
MDL-45641 event: Ldap user_signup unit test added
MDL-45961 Customise this page button on user profile page only works correctly for users own profile
MDL-46161 switch the field order of the index on mdl_files_reference to improve performance of file_storage::search_references
MDL-46093 quiz review should default to showing everything on one page

... as long as the quiz is not too big. At the moment, that limit is
set to 50 questions.
Automatically generated installer lang files
MDL-32450 delete Dragmath plugin and library because it is not compatible with GPL
MDL-32450 upgrade: do not remove DragMath settings if the files still exist
MDL-45381 mod_forum: changed event URL for subscription created/deleted events