wip: AppFlow, by @loganj et al

Nearly there. So tired.