Changes for attachments support

Added hook into object_notification to add a hook that can help plugins provide attachments for existing plugins