Fixed the URL for the node stats for version 1.x of ElasticSearch.

The monitor now first queries Elasticsearch to determine the version, and then based on this version it will choose the appropriate URL for the node stats. I also did some minor code cleanup along the way.