Factor some http client stuff into DNSimpleClient