Rename submitted files when a new codename is generated

Should resolve #557
Maybe we should only commit the session once all the filenames have been successfully updated?