Testing of advertisement.

Had to break out some methods to be able to test them.
some advertisement fixes
Let debug show packet data.
some coding style fixes
external dns lib. not tested with advertisement
some decoded messages from mdns-js-packet