Yum refactoring

This adds some info to the docs, cleans up the yumpkg module a bit, and also fixes a bug introduced in b6201e41.