add index template API (/_template)

This adds methods for the _template API's (http://www.elasticsearch.org/guide/reference/api/admin-indices-templates.html).

In addition there's a `list_templates` API, based on the cluster/_state API as a convenience. This pull requests depends on https://github.com/rhec/pyelasticsearch/pull/63 for the cluster_state method.