[V2] Resourcified attachments

rebased #427.