Compatibility update for ES 1.2.x

In the 1.2.x update of elasticsearch the HTTP / REST classes were refactored causing it to become incompatible with this plugin. This updates the response builder to work with the updates and resolves #13.