Add a method to get all the extensions associated to a mime type

This is needed to solve problems with mismanaged extensions in the journal.