MDL-47697 mod_data: Fix group id change when editing.

When a teacher edits an entry in the database module
it would change the group ID to the one that the teacher
currently had selected.

Thanks to Steve Bond for providing a patch.
MDL-47321 iplookup: Prevent guest users from using iplookup
MDL-47190 Ensure badges cannot be awarded without a role

Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
MDL-47924 mod_lti: Fixing missing sesskey checking

Also fixing a missing capability checking.
MDL-47965 tag: Enforcing security of tag auto completion
MDL-47927 LTI: Use PARAM_TEXT and p() for returned messages and errors
MDL-48013 calendar: force download of user files

Conflicts:
	lib/filelib.php