MDL-37774 Add unit test to illustrate the problem with the trailing slash

The patch introduces two new tests for moodle1_file_manager::migrate_directory().
The second test with the trailing slash reveals the trouble here.
The expected behaviour is that the method would deal with the trailing
slash. Debugging message for the developer should be displayed though.
Automatically generated installer lang files
MDL-37774 Make moodle1_file_manager::migrate_directory() support trailing slash in rootpath

As the $rootpath is concatenated with the $relpath, we would end with a
path like course_files//file.txt. Such a path is detected as not-valid
later and an error would be thrown.

So the patch makes sure that the trailing slash is cut off and a
debugging for the developer is displayed.
MDL-37774 Do not pass trailing slash if the method does not want it
Automatically generated installer lang files
Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE
weekly release 2.2.7+
MDL-38003 upgrade: ensure specific columns are set to not null during upgrade from < 1.7 to 2.x
Automatically generated installer lang files
weekly release 2.2.7+
Automatically generated installer lang files
Merge branch 'MDL-38003_m22' of https://github.com/markn86/moodle into MOODLE_22_STABLE
MDL-38003 upgrade: whitespace fix.
Merge branch 'install_22_STABLE' of git://git.moodle.cz/moodle-install into MOODLE_22_STABLE
weekly release 2.2.7+
Automatically generated installer lang files
MDL-37481 user: fixed bug when logged in as guest
MDL-36901: Remove system paths from exceptions

Replaces any server paths, like dataroot, with a token
in exception messages and debug info.

Conflicts:
	lib/tests/setuplib_test.php
MDL-37507 repositories: improved formatting of external resources
MDL-37681 repository_webdav: improved form handling when configuring an instance