support basic http authentication with elasticsearch, and multiple servers.  fixed #1