* Add ability to define custom thresholds for files and modules.
* Fix bug where module thresholds were not being reported or enforced correctly.