Rails 5 - ParamsParser middleware conversion
As part of upgrading Katello to Rails 5, perform the necessary conversion to the ParamsParser middleware.
2) ParamsParser middleware conversion. Discussion: https://github.com/Katello/katello/pull/6875#discussion_r127714637
Fixes #21019 - change content_type for specific actions
this commit removes the Params parser wrapper, replacing
it with middleware that modifies the content type for
certain requests to prevent json parsing of the content.
Rails 5 no longer uses the params parser middleware and
instead recommends you inherit from a different base
controller. However this would require massive refactoring
of Foreman controllers, and seems less than ideal