Add support for setting an HTTP root path

This can be useful when running Elasticsearch behind a reverse proxy. It can be used like this:

    api.BasePath = "/elasticsearch"

Let me know please if this was already possible by using other options.