Make DNS parsing more roboust.
Style cleanup in DNS parser.
Build with debug unless overridden via CFLAGS env.
Add unittest framework

waf changes introduced to be able to use the dns parser
directly from the testcases.

no tests added yet, awaits anonymisation of the test data.