The «Scratch» technology, which allows to use some Unionfs layers for changing of program composition of Gentoo-based distro, was described in the article. This is the one of developments of «Calculate» company. You can read more here
http://www.calculate-linux.org/Using_Scratch_technology