Create model for tracking broken links

This also updates the checklinks command since several methods were moved out
of it and into the models and model manager.