Get rid of the unused class "InvalidFile".
Pull the initialization logic out of Model.

Model really shouldn't care about things like widgets; the setup now
happens in a new `app` module.