yumpkg: Import common modules from yumpkg5

A DRY commit, so that any issues with these functions are not fixed only
in one provider.

yumpkg5 used to import these from yumpkg, this reverses that now that
yumpkg5 is the de-facto yum frontend.
add note about yum_provider param
Merge pull request #9811 from terminalmage/yum-refactoring

Yum refactoring