Revert relations purge debugging
Fix newlines not showing up in Abstract/Extra fields
When renaming attachment files, keep file extension if not provided
Properly revert attachment renames if they fail. Closes #430