Add framework for handling attachments when operating as a client a client and server.