Add support for PG modules

* Refactor modules task
* Cache cache format
* Add support for grabbing PG module data in to output
* Fix bugs with ug/pg checks