Set versions on plugins properly.

This makes the plugins include their version in the output file
name, and when used as a dependency.

Also create a dist-versioned directory which accumulates versioned
plugins.
Merge pull request #130 from csmith/master

Set versions on plugins properly.