Expose CDTAttachment initialiser with name, type, size.
Significantly improve error handling when creating attachments