code: function reqToAppName(req) {
    var targetName = null;
    try {
      targetName = req.url.split('/').pop();
    } catch (e) {}
    return targetName || null;
  }
docs: Given a request, returns the name of the target App.
  
  Example:
  Call to 34.23.34.54:3000/api-2
  Will return 'api-2'
  
  @param req The request to be analysed
  @returns {string|null} The name of the app, or null if not found.