Add flow information to the tooltip.

Adds a utility function to get flow events that belong to a given scope,
uses it to show flows in tooltips.