#102 Major refactoring of transition pipeline.

This doesn't complete this task for 0.7 as there are some renaming left
etc. But it should make way for #81.