add plugin basics and fix #31 by providing it as plugin
release 0.4. See NEWS.md for what changed.