Use elasticsearch.js and update elastic.js

Use the official elasticsearch javascript client along with the updated
version of elastic.js.

I had some time to investigate the problems I had in the earlier PR and found that they were in Angular.  This new PR includes an upgrade to Angular 1.2.16 which does not have the bugs.

I feel this is ready for review.  Please let me know what needs to get done to get this merged in.  I believe it is important to be using the official elasticsearch javascript client considering it is the recommended client and it works with elastic.js which is used heavily in Kibana.

Re-opening #1077