This commit DRYs up the indices folder as well as fixing a few minor mishaps that were in the docs.
Also added master_timeout parameter for the indices.get spec Relates to #27205