packagers: yum: move miniyum to library

Change-Id: I3aa3b77bc9223449c2ad165b8d4cbed38e57b950
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>