1098844 - updating yum distributor to publish rpms at the same level as ...

...repodata directory and not as per relative path of each unit

https://bugzilla.redhat.com/show_bug.cgi?id=1098844

There were no unit tests whatsoever for this function and not enough coverage for areas which directly get affected by this function as well, so it was hard to figure out all the areas that can get affected. I have verified the areas related to 3 uses of this function through syncing, checking the location of published content and installing rpms, drpms and errata using those repos. Also added a unit test for this function.