index: add Optimize and Refresh actions

Add Optimize and Refresh actions:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-optimize.html
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-refresh.html