Identified that qclass was being encoded incorrectly if qu was set - added also test case for that.
Added some sanity checking code to ensure that we don't get TOO many messages (=the system is not doing anything out of the ordinary).
Some refactoring of query creation, and perhaps fixed buglet with wrong TTLs sent for KAS entries from cache.