So my question is: does this sound like a reasonable way to get this done? Second question: if someone's done this already, would you like to share? I'll send cookies.
Finally, if I do end up writing this, I'll be happy to share here if anyone is interested.
Sounds like a great future enhancement, doesn't it?