fix jshint errors - remove unused code (#1222)
Use elasticsearch-js client for fetching field mapping and nodeinfo. (#1222)