Add trivial authentication support.
(Useful when ES is fronted by an authenticating proxy)