code: function _addStore(app, item) {
    if (!item.name || item.name === '') {
      try {
        if (typeof item.fn.publicName === 'string') item.name = item.fn.publicName;
      } catch (e) {
      }
    }
    if (item.name.indexOf('thorin-store-') === 0) {  // we trim it.
      item.name = item.name.substr(13);
    }
    if (typeof app[stores][item.name] !== 'undefined') {
      throw new Error('Thorin.addStore: store ' + item.name + " is already registered. Please use a different name.");
    }
    let storeObj = new item.fn(app);
    storeObj.setName(item.name);
    app[stores][item.name] = storeObj;
  }
docs: /*
  Registers a new store to the Thorin app.
  // TODO: handle init() and run() if the app is already