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?
What's the `l10n_context` doing here? Seems like this is running a gettext on a string from the db. Thus this line doesn't get parsed for creating the .pot file. Thus the context doesn't affect anything. Am I missing something?