Implement version module

This is a fix for the previous commit in which I failed to add the real
code for the module.  The reason this happened is that I wrote the code
in the version.subr file instead of version.subr.in... and the code was
lost upon make.