File uploader cleanup code for old file states stored in UJS and old
shock nodes used for upload.