Update Api::Flow calls to take a DirectoryInput

Create a helper in the registry to handle input building, paths and
constructing flows