Create y_flow_list.c

This is a copy of y_profile.c with all references to profiles replaced with references to flows.

Also, certain variables and functions got renamed a little further to clean up our interface. While we have a chance to redo it, might as well use it.