DTHTMLWriter improvements

- the style of A tags was duplicate in the class as well as in a local style attribute
- added class deduplication for text attachments. size info is kept as local style, the rest (only vertical alignment for now) is now in class

fixes #296