Refactor pipeline generation as builder
The generation of pipeline with required blocks should be automated using builder pattern. It should be used for a generation of initial assumptions in API and new individuals in composer.
See discussion for details.