MDL-38570 administration: Temporary file deletion

Added new function "cron_delete_from_temp" to delete old files and
directories under $CFG->tempdir during cron run. Unit test included.
Merge branch 'MDL-38570-master' of https://github.com/timgus/moodle