Updated check-es-heap.rb to use similar checks for ElasticSearch v1.0. (...

...cribbed partially from the check-es-cluster-status.rb)