`userScope` is misnamed here (something I corrected for the preferencesManager in a different pull request). It's actually a scope loading promise.

The thing to do here is to construct the scope...

```javascript
var userScope = new PreferencesBase.Scope(new PreferencesBase.FileStorage(userStateFile, true));
var projectLayer = new PreferencesBase.ProjectLayer();
userScope.addLayer(projectLayer);
stateManager.addScope("user", userScope);
```