Add plug() method to plugins

Prototype plug() framework, as mentioned in #43