Add “identifier” parameter in mw.setupPreferences().

And rename “name” to “label”.