dns: parse and store TXT responses

This way the TXT data can be logged by the loggers.

Ticket #1158
dns json: log TXT response data

Log TXT data in the rdata field.
dns: add tests for TXT response parsing

Add valid and invalid examples.