Add stats function

Implementation of the Indices Stats API from Elasticsearch.
http://www.elasticsearch.org/guide/reference/api/admin-indices-stats.html