[MDL-44170]
[MDL-41724] IMS Memberships Service support.
Merge remote-tracking branch 'adrian/MDL-41724-master' into MOODLE_27_STABLE_WITH_MEMBERSHIPS

Conflicts:
	mod/lti/lib.php