Automatically add version and git tag to cabal files at build time.

And add a --version flag to the smten compiler. This fixes #6.