Sub-package DNS resolver and compression implementations

Move the DNS resolver and compression implementations into their own
package for OSGI compatibility.