Upgrade to latest CI3 changes: attach() accepts remote files, attach_cid() method has been added (CI3 only).