Some refactoring of file-finding-related code
Added identify_folder to plugin interface
Now using NameBasedIdentifier to identify folders