MDL-40404 Libraries: Moved DEVELOPER_DEBUG outside loop
(cherry picked from commit d519c222e29ed5873f53b406c6046e9339cc20b7)

Conflicts:

	lib/tests/accesslib_test.php
MDL-40427 Libraries: Deprecated context_moved in favor of context::update_moved()
MDL-40425 libraries: Deprecate context_instance_preload()
MDL-40425 libraries: Remove context_instance_preload() from core