add permissions of the file to the json response
store the permissions retrieved via ajax within the dom element
remove file action elements before recreating them
no file actions during upload
adding comma to get cleaner diffs in the future