Fixes a bug that causes HTTPS to never be used. Without using the HttpAgent version of KeepAliveAgent the connections always default to http instead of https, even when https is specified as the protocol.
Fixes a transposition of the agent class names.
Merge pull request #25 from PlayNetwork/master

Fixes a bug that causes HTTPS to never be used.
added tests for #25
Fixed the handling of "errors" in the angular connector, fixes #23
Merge branch 'master' of github.com:elasticsearch/elasticsearch-js