change internal order of derive tuples

Current order is: [:function :inputs :output]
build basic dataflow

Currently returns a new map with sorted derive functions.
get a very simple flow working

Add basic support for the transform and derive phase of a flow.