Extract supported mimetypes from desktop files

This is the first stage to implement search-by-mimetype,
https://bugzilla.gnome.org/show_bug.cgi?id=707320