message: Create a store object for feature flags
diff: @@ -550,6 +550,25 @@ DataStore.prototype.storeIrcClientConfig = function(config) {
  });
  };
  +DataStore.prototype.getUserFeatures = function(userId) {
  + return this._userStore.getMatrixUser(userId).then((matrixUser) => {
  + if (!matrixUser) {
  + return {};
  + }
  + return matrixUser.get("features") || {};
  + });
  +};
  +
  +DataStore.prototype.storeUserFeatures = function(userId, features) {
  + return this._userStore.getMatrixUser(userId).then((matrixUser) => {
  + if (!matrixUser) {
  + matrixUser = new MatrixUser(userId);
  + }
  + matrixUser.set("features", features);
  + return this._userStore.setMatrixUser(user);
  + });
  +};
  +
  DataStore.prototype.storePass = Promise.coroutine(
  function*(userId, domain, pass) {
  let config = yield this.getIrcClientConfig(userId, domain);
  