public-libs: Moved common/ to libknot/internal/
public-libs: Moved libknot/util/* to libknot/internal
Fixed RCODE-processing.

Extended RCODE is one 12-bit number. Until now it was not only
handled separately for old and new RCODEs, but it was also
interpreted wrong.

Unified RCODE processing - it's represented by only one number and
writing into the packet takes place at the end of query processing.

refs #300
ext-rcode: Fixed RCODE setting in error-processing
ext-rcode: Fixed error processing.
Merge branch 'master' into ext-rcode

Conflicts:
	src/knot/nameserver/process_query.c
Merge branch 'master' into public-libs-common

Conflicts:
	Knot.files
	src/Makefile.am
	src/knot/conf/conf.c
	src/knot/ctl/estimator.c
	src/knot/ctl/knotc_main.c
	src/knot/ctl/remote.c
	src/knot/dnssec/nsec3-chain.c
	src/knot/dnssec/zone-keys.c
	src/knot/dnssec/zone-sign.c
	src/knot/nameserver/nsec_proofs.c
	src/knot/nameserver/process_query.c
	src/knot/nameserver/update.c
	src/knot/server/server.h
	src/knot/server/tcp-handler.c
	src/knot/server/udp-handler.c
	src/knot/updates/apply.c
	src/knot/zone/contents.c
	src/knot/zone/events/handlers.c
	src/knot/zone/timers.c
	src/knot/zone/zone-tree.c
	src/knot/zone/zonedb.c
	src/knot/zone/zonefile.c
	src/libknot/binary.c
	src/libknot/dname.c
	src/libknot/dnssec/key.c
	src/libknot/errcode.c
	src/libknot/internal/log.c
	src/libknot/internal/mempattern.c
	src/libknot/internal/net.c
	src/libknot/internal/tolower.c
	src/libknot/internal/trie/hat-trie.h
	src/libknot/internal/utils.c
	src/libknot/packet/compr.c
	src/libknot/packet/pkt.c
	src/libknot/processing/layer.c
	src/libknot/processing/requestor.c
	src/libknot/rrset-dump.c
	src/libknot/rrset.c
	src/libknot/rrtype/nsec3param.c
	src/libknot/rrtype/opt.c
	src/libknot/rrtype/tsig.c
	src/libknot/tsig-op.c
	src/utils/nsupdate/nsupdate_exec.c
	tests/hhash.c
	tests/namedb.c
	tests/zone_timers.c
	tests/zone_update.c
public-libs: Reordered some includes to be consistent
public-libs: Removed dependency on config.
namedb: support more flags / operations
namedb: interactive iterator (lmdb) + updated tests

Not supported in trie because of the API incompatibility.
namedb: cleanup, comments
namedb: implemented GEQ/LEQ for lmdb backend + tests
ext-rcode: Review fixes
ext-rcode: Minor fixes to the previous fixes.
ext-rcode: Missing include
ext-rcode: Fixed wrong assert.

Some RCODEs other than NOERROR may result in DNSSEC processing,
e.g. NXDOMAIN.
Merge branch 'master' into namedb_iter_seek
namedb: implemented clear() operation
Merge branch 'master' into public-libs-common

Conflicts:
	Knot.files
	src/libknot/internal/hhash.c