Improve libvmod-dns

This pull request includes several fixes for the libvmod-dns, including memory leaks and some reported crash.
I've also added support for V4 in my master branch.