code: function getLongestDelay(delays) {
      var latest, lid;
      for(var id in delays) {
        var available = delays[id].available;
        if(!latest || available < latest) {
          latest = available;
          lid = id;
        }
      }
  
      return lid;
    }
docs: Determines the longest delay amongst a set of delays. Used to determine
  which resource to report for resources that are OR'd together.