Yaocho APIs

This adds a few APIs that were useful for Yaocho. These need to get to prod before I can put Yaocho in the marketplace.

r?
Seems like we want to be doing these two transforms in settings or once per thread or something rather than for every request for the CBV that uses this mixin.