Enforce plugin sanity

Plugins seem to return a bunch of utter nonsense, currently.
Add some assertions to teach them. This is clearly not something
we can ship, but it at least shows whats wrong. We should fix
the plugins to pass these assertions, and then turn them into
a warning, plus filtering out bad apples.