Add support for HTTP Basic Authentication

To specify a user or a password just add them to the server url using
the following syntax http://user:password@example.com:9200.
Merge pull request #14 from mcolyer/basic-auth

Add support for HTTP Basic Authentication