Fixes #7307 - Refactor errata/package/package group APIs

Original task was to add missing params to the package group API but noticing some similarities among packages/errata/package groups APIs, I made the code more DRY as well.
I think that's when you include a module that uses `alias_method_chain`. I double checked and the apidoc is correct (it doesn't have a content_view_filter_id param).