cache domain name lookups

locally this was getting called anywhere from 4-40 times per page
load (as well as in all sorts of async places)
reduce cache timeout
Merge pull request #3264 from dimagi/domain-caching

cache domain name lookups