code: function (hub, resource, api) {
    this.id = 'control';
    this.config = {};
    this.controlFlows = {};
    this.dataFlows = {};
    this.dataFlows[this.id] = [];
    this.reverseFlowMap = {};
  
    this.debug = hub.debug;
    this.hub = hub;
    this.resource = resource;
    this.api = api;
  
    this.delegate = null;
    this.toDelegate = {};
  
    this.hub.on('config', function (config) {
      util.mixin(this.config, config);
      this.emit('config');
    }.bind(this));
  
    util.handleEvents(this);
    this.hub.register(this);
  }
docs: A freedom port which manages the control plane of of changing hub routes.
  @class Manager
  @implements Port
  @param {Hub} hub The routing hub to control.
  @param {Resource} resource The resource manager for the runtime.
  @param {Api} api The API manager for the runtime.
  @constructor