fix deprecation warnings

* require `guard/plugin`
* inherit from `Plugin`
* fix initializer
Merge pull request #21 from glanotte/silence-oh-so-loud-deprecation

fix deprecation warnings