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?
This could use a docstring. Amongst other things, I'm not sure what its role in life is.