Set SERVER_NAME to the request host

This fixes a problem where flask would only listen to one subdomain...
Past-tense inflection
Cache libs per request
Cache libs per request