#123 unified handling of file resources and renamed items to Resource, FileResource and DirectoryResource