Update attachment class API.

- Updated the Attachedment class API so that it's ore consistent.
- Fixed inconsistent behavior in the keep_old_files and preserver_files
  flags.