Turn Attachment into an implicitly shared value type
Summary:
Avoids the extra allocation, and makes this easier to directly expose to
QML/Grantlee/etc.
Subscribers: kde-pim
Tags: KDE PIM
Differential Revision: https://phabricator.kde.org/D22244