topo: have to_event use pipe for packet_outs
apps: Add unit argument to handler type

The unit argument indicates a partial application point. Anything
computed in the partial application not be recomputed on applications of
subsequent arguments.