Added a deleted field to File Entity to mark a resource file as deleted
Remove now mark a resource file as deleted but does not remove corresponding entry from database, except if $anyway is set
Now handle use cases where a resource file is deleted, then re-added with same name and different media: now new media will be displayed (version number is increased from previous one)