Implement `AttachmentModule.resource_exists`.
This checks both for the existence of the attachment in the database and on the file system.
Authored by: cboos 2010-05-19
Parent: [r9723]
Child: [r9725]