Add URIUtils::HasExtension(..) functions
Use the new HasExtension(..) function
Cleanup IDirectory::IsAllowed(..)