Add flow upload service. Start moving code over from ws-based branch
into this branch.