Breaking up monolithic smart-proxy into modules
fixes #5675 - expect dns_key setting to be nil if not set.

Thanks to Dominic & Greg.