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

Likewise, this should potentially prevent the call to parent::fetch from happening based on the return value.