note that the plugin api has been deeply modified, and should now be definitive. It will be documented soon on the wiki.