Removed FileTypeRegistry singleton

Added utils.canonicFileExt to replace the registration,
so we don't persist different preferences for htm and html files.