Exporting Attachments: Raw Code

The attachments can now be exported. But, proper embedding still needs
to be done and the coding style needs to be looked into.