FLUID-5222: build and init func for prefsEditor

Added fluid.prefs.create as a single build and init function for the prefsEditor. Unit tests and demos need to be updated still.