Trio workflow

The workflow creation is pretty verbose - any shortcuts that we missed?
We've had problems with some of our code using 5.10 features if LIMS runs it.  Is that still a problem?  The non-5.10 version of the same thing would be
```
{
    my $counter = 0;
    sub _workflow_counter {
        return $counter++;
    }
}
````