Explain how to use attachments via RPC and Messaging on the client and server side, how to add and retrieve unreferenced attachments.