/*
Binds the given handler to the path.
function registerActionPath(verb, url, actionName) {
    var app = this[server];
    var reqHandler = handleIncomingRequest.bind(this, actionName, url);
    app[verb](url, reqHandler);
    // We have to insert the action handler right before the notfound handler.
    let requestLayer = app._router.stack.pop(); // last one added
    let wasInserted = false;
    for (let i = 0; i < app._router.stack.length; i++) {
      if (app._router.stack[i].name === 'bound handleRequestNotFound') {
        app._router.stack.splice(i, 0, requestLayer);
        wasInserted = true;
        break;
      }
    }
    if (!wasInserted) {
      app._router.stack.push(requestLayer);
    }
  }