MDL-28019 Added setType in the moodleform
MDL-28019 Unescaping the file name
MDL-28019 Remove obsolete comment
MDL-28019 Support for possible subdirs in textarea

Subdirs are usually disabled for textareas in moodle but it was reported that they can be present after upgrade
MDL-28019 Support for possible subdirs in repository_areafiles