converted optimize, snapshot, open and close index
to the new rawdispatch routine
IElasticClient rework in progress