code: function (debug) {
    this.debug = debug;
    this.config = {};
    this.apps = {};
    this.routes = {};
  
    util.handleEvents(this);
    this.on('config', function (config) {
      util.mixin(this.config, config);
    }.bind(this));
  }
docs: Defines fdom.Hub, the core message hub between freedom modules.
  Incomming messages from apps are sent to hub.onMessage()
  @class Hub
  @param {Debug} debug Logger for debugging.
  @constructor