[V7] Resourcified attachments

rebased #528.