Add basic F22/dnf support to yum-minimal path. We extract common code, add some comments and reduce duplication. Change-Id: If4bd5f88e26bd6f2168958f1ec1efff1072de7ba