Fixes #4987: Use rudder-plugin to register / unregister the plugin

Ticket: http://www.rudder-project.org/redmine/issues/4987

To be merged in 2.11