MDL-44615 modinfo: make it easier to use cm_info instead of get_coursemodule_from_id

by adding function cm_info::get_course_module_record()
MDL-44615 core: simplify access check by adding login() methods to PAGE
MDL-44615 course: use PAGE->login instead of require_login for readability and privacy
workshop
wiki
scorm
quiz
lesson
glossary
forum
feedback
data
choice
chat
book
assign
folder
survey
resources: url, resource, page, lti, label, imscp