Dataflow framework for desktop and web applications