Changed get index settings api to use new internal get index settings api instead of relying on the cluster state api.

The new internal get index settings api is more efficient when it comes to sending the index settings from the master to the client via the node that received the initial request. Also the get index settings support now all the indices options and a new prefix option.

Relates to #4620