Refactored open/close index api to make use of the new recently introduced generic ack mechanism

Closes #4169
Added base ClusterStateUpdateRequest class that executes on multiple indices
Added readTimeout, writeTimeout, readAcknowledged and writeAcknowledged methods variation without version as parameter, to be used by api that always read and write those parameters. Helps avoiding to call the variation that accepts a Version with actual version null.