Fix action name
Improved handling of forwarded attachment
Fix changing sort
More robust handling of errors when removing an attachment
Fix the actual deletion of the attachment
jsfixes caught by jshint