Allow local schemas to be loaded as well, and consolidate prefs management to prefs.js