This looks cool! I ran into an error though - ad_returnredirect isn't defined in my copy of openacs 3.2.5, so I had to convert them to ns_returnredirect.
Now to start making some test cases...