create a new FlowAnalyzer, and simplify Scanner

Going forward, Scanner will just do a quick scan to find producers and
consumers, and FlowAnalyzer will do the real work.
finish out the rest of the consumer analysis

This class now does "full" flow analysis, using producers and consumers.
The producers are easy to process. The consumers require a bit more
work.
hook up the analysis in main
add to todo