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

Sure, those other parameters would be useful. Also add a $result parameter; when the hook specifies that the default behavior shouldn't be performed, then this function can return the $result from the hook registrant instead.