Add analyze API

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