Action params now validated at the worker/uniter level

Before the Action is run as a hook on the unit, its passed params are
validated against actions.yaml.  If the validation fails, no error is
produced but the hook will log an error and fail.
The comment says switch, but now it's an if.