=str #15755 #15756 First stab at input/output factories

* New naming based on Source and Sink

Some parts of this convoluted/wrong. Take a look and we can discuss.
Well, when writing the tests (actually, re-using existing tests) I found it just too much boilerplate without these.