I'm working on something that might achieve this, pending performance issues and testing; the whole sob saga is being documented on my otherwise hideously-empty blog (http://blog.anubite.co.uk) -- I'm hoping to have it all done to fully-testable standards by the end of the week.
Is it just me, or are you always almost finished on features by the time someone thinks to suggest them?