Remove debug logs from tests. Add comments to nginx config file.
Improve DNS resolver. Use system DNS servers and persist the results.

We were already caching the results in memory, but persisting the results in
redis helps cut down on the need for nginx to reload when the gatekeeper gets
restarted.
Fix for resolving local hostnames like "localhost."