First draft of Plugin API.