Added support for multiple indices in open/close index api

It is now possible to open or close multiple indices the same way as the delete index api works. The only exception is when dealing with all indices: we have to explicitly use _all or a pattern that identifies all the indices.