use the new API to register the plugin
Merge pull request #3 from mmoll/plugin_api

use the new API to register the plugin