[WIP] Support the new external plugin system.

Pull request for resolving issue #10.