Use Haste Data for messages (fixes #1133)

This allows to customize the template for messages and write own
HTML code.