first steps towards a generic transformation pipeline for krun

**do not review yet**