Add AttachmentToHTML library

Extracts the attachment processing from FoiAttachment#body_to_html

AttachmentToHTML contains adapters which convert
  - text/plain
  - application/pdf
  - application/rtf

Results are returned as an AttachmentHTML::HTML instance which contains
the raw HTML and other metadata about the conversion.
Use AttachmentToHTML to generate FoiAttachment#body_as_html
Get attachment body outside of chdir
Work around a bug in unrtf
Add an AttachmentToHTML::View to deal with rendering
Simpler AttachmentToHTML::Adapters::Text interface
Simpler AttachmentToHTML::Adapters::PDF interface

TODO: We really should be testing the full output of PDF#body, but
inconsistencies between pdftohtml prevent sensible means of doing this.

For example:

    adapter.body.should == %Q(\n<A name=1></a>thisisthebody<br/>\n<hr>\n)

Fails because some versions (correctly!) use lower case tag names.
Simpler AttachmentToHTML::Adapters::RTF interface

TODO: We really should be testing the full output of RTF#body, but we currently
want to remain consistent with Adapters::PDF as many methods are shared between
the Adapters.

A more correct spec might be:

    expected = %Q(<font size=3><font color="#000000">thisisthebody</font></font>)
    adapter.body.should == expected
Simpler AttachmentToHTML::Adapters::GoogleDocsViewer interface
Simpler AttachmentToHTML::Adapters::CouldNotConvert interface
Update AttachmentToHTML for new View class
Remove redundant AttachmentToHTML::HTML
Dynamically inject AttachmentToHTML::View content
Minor change to FoiAttachment#body_as_html

AttachmentToHTML#to_html already returns the raw html now
Update gubbins to call AttachmentToHTML
Merge branch 'issues/337-attachment-title' into rails-3-develop