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

This should check the return value of the hook call to potentially prevent the unlink below from happening, should a plugin wish to intervene.