Added ability to raise or log on unpermitted params.
Merge pull request #8999 from thomasfedb/raise_or_log_unpermitted_params

Raise or log unpermitted params.