Some actual work maybe?

Well, here is some actual code that should exist in the API. It is support for a plugin class.