#5279: Experiments.
#5279: Rewrite file_usage stuff.
#5279: Remove cause of infinite loop.
#5279: Remove debugging messages.
Merge pull request #5601 from openscholar/5279-file_delete_changse

Restructure how references to deleted files are cleaned up