Add to_model() method to from_disk.{Content,Directory}, to convert to canonical model objects.
They will be used by loaders, so they can deal only with canonical model objects, instead of having to do the same conversion themselves.
Depends on !249 (closed).
Migrated from D2703 (view on Phabricator)