Allow runtime registration of file types to make code cleaner, i.e. no more new else if when adding new file types.