Add hook before and after delete a file

Add possibility, for the localfile field, of specify a pre and/or post hook when we delete a file.

When i upload an image on my website with the localfile field, i generate multiple images of differents size. For that, i use post move hook of localfile. I have add a pre/post delete hook to delete images i have generate, when i delete the original file.