REST API: Allows all options for expand_wildcards parameter

This change means that the default settings for expand_wildcards are only applied if the expand_wildcards parameter is not specified rather than being set upfront. It also adds the none and all options to the parameter to allow the user to specify no expansion and expansion to all indexes (equivalent to 'open,closed')

Closes #7258
missing @Test annotation, I think if the method name doesn't start with test it won't be picked up