fix automatic setting of message type
facade FreeMarker API for modules implementing template tags and add infrastructure for a nice, annotations based API