Factor out the mimetypes model.
Speed up mime type tree loading considerably by deferring icon lookups.
Make mime types model read-only.