code: function emitter(event, payload)
  {
    // get proper name
    var normalized = normalize(event);
  
    // notify listeners
    this.emit(normalized, payload);
  
    // notify listeners of the specific type
    if (payload['template_type'])
    {
      this.emit([normalized, payload['template_type']].join('.'), payload);
    }
    else if (payload.type)
    {
      this.emit([normalized, normalize(payload.type)].join('.'), payload);
    }
  }
docs: Emits normalized event with payload and extracted send method.
  Also tries to emit specific type event
  
  @param {string} event - event handle
  @param {object} payload - current payload object