Added support for setting a global HTTP root path.

This can be useful when running Elasticsearch behind a reverse
proxy. Can be used, for example, like this:

   api.BasePath = "/elasticsearch"
Added esport and espath flags for the test.