11054 on2 delete

Works around the `O(N^2)` performance issue of trying to delete all the files in a fileset for each of the images in a file, This is typically only perceptible when deleting plates when N is roughly `10^3`.

This branch is currently on top of @mtbc's branch, but will be rebased once that's merged.