*9003* Introduce new hooks TemplateManager::fetch and FileManager::deleteFile

As with the template manager, adding a $result parameter to the hook call can let the hook registrant choose the return value for the function when the default behavior is overridden.