Preware: Implement Package Sorting

* Switch to Type/Category/Package naming scheme
* Store visible categories/packages in arrays

Signed-Off-By: Josh Palmer <jpalmerwatkins@me.com>