fix deprecation warnings

* require `guard/plugin`
* inherit from `Plugin`
* fix initializer