Move flow API to own module (GWT and maven)

The flow demo is in the codebase but not part of the maven build process. You can start the demo on its own:

1. `cd flow/demo`
2. `mvn gwt:run`