Use elasticsearch.js and update elastic.js

Use the official elasticsearch javascript client along with the updated
version of elastic.js.

Initial conversion and update.