XD11 - Parameterized flows

Work in progress. The transaction test does not pass yet but I wanted to put this out there since there is a lot to review