Release 0.4.0

And some docs for CommandPlugin.