Support text attachments in HTML Writer

if the NSTextAttachment conforms to <DTTextAttachmentHTMLPersistence>

First baby step in implementing #611.
Allow building under iOS 6

although I don't know whoever wants this ;-)
Fixed previous commit
Merge pull request #730 from futuretap/attachments

Support text attachments in HTML Writer