Revert "Update plugin API"

This reverts commit 27338347b5c15a68941b8e1ba49d26e833620b5b.
Revert "Update tests"

This reverts commit 054bab3a6159f49a54cdf56004efab5e09dcc6df.
Release 1.7.1.