Refactored FileScanner to allow FileFilters and SourceFilters.