Changes for attachments support

Adds an attachemnts param + new hook into object_notifications that allows using an hook to help plugins add attachments