[V8] Resourcified attachments

rebased #541.