Initial graft implementation.

Currently missing: actual selector filtering heh. The only part that
matters in the selector is the last clause that indicates *what* to
replace with the transformed value.