Code review changes
Code review changes

Commented inline on github

huitema/getdns,shane-kerr/getdns,smogali/getdns,huitema/getdns,shane-kerr/getdns,shane-kerr/getdns,huitema/getdns,smogali/getdns,smogali/getdns,smogali/getdns,shane-kerr/getdns,huitema/getdns