Rework resolver library.

Conflicts:

	src/dns.c
Rework LRU hash logic.