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.
Updated Knot.files
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.
Set IP_FREEBIND on socket before bind to allow start before the network is fully up
Add support for binding on non-local sockets on FreeBSD (IPV6_FREEBIND)
IP freebind: add IP_BINDANY for FreeBSD
Merge branch 'freebind' into 'master'

Allow server to start before the interfaces are up

This adds very simple support for starting server before all interfaces are up (see [1]).  The most correct solution would be to use rtnetlink[2] and bind to interfaces as they come up, since using IP_FREEBIND or IP(V6)_BINDANY also means that wrong IP address won't be detected and reported as error.

Something like this is needed for systems with systemd as init system and dynamic interfaces.

NSD is also haunted by this (see [3]).

References:
1. http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
2. http://man7.org/linux/man-pages/man7/rtnetlink.7.html
3. https://bugs.debian.org/765831

See merge request !295
namedb: support more flags / operations
namedb: interactive iterator (lmdb) + updated tests

Not supported in trie because of the API incompatibility.
Fix void arithmetic, non-void returns and redundant semicolons
namedb: cleanup, comments
namedb: implemented GEQ/LEQ for lmdb backend + tests
endian: add support for little-endian operations