code: function _addModule(app, item) {
    item.name = item.name.trim();
    if (item.name.indexOf('thorin-module-') === 0) {  // thorin plugins have their name trimmed.
      item.name = item.name.substr(14);
    }
    if (typeof app[modules][item.name] !== 'undefined') {
      throw new Error('Thorin.addModule: module ' + item.name + " is already registered. Please use a different name.");
    }
    app[modules][item.name] = item;
  }
docs: /*
  Registers a new thorin module