Support for parameter configuration in reduce step

Added support to configure also "reduce" scripts by initial parameters, as only init, map, and combine supported that before.

Reduce received only the "facets" object and not the params map, so there was no clean way to pass parameters per request.