Add a new Vega transform to support caching.

This is part of a solution to improve performance by storing
intermediate data (from within the Vega transform pipeline) in a shared
cache. See inline comments for more information.
Cache tree source data for (much) faster redraws.