Update to 522.92.1

[Sorry for the size and messiness of this commit. I was too lazy to ignore whitespace, and by then it was too late...]

This is a quick-and-dirty port of the 320.5 patchset to 522.92.1. 

I have only tested dnsextd at the moment, and it appears to work with the exception of IPv6 (daemon fails with a port-in-use message that I don't have time to debug). As a workaround, I simply disable IPv6 on the interface.

Did I mention that it was quick and dirty? :)