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?
A good idea. I nixed most of this function though, and re-used our pre-existing locale negotiation.