Open/close index support

Support for opening and closing indices.

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html