[JBOSGI-642] Consolidate attachments API

https://issues.jboss.org/browse/JBOSGI-642