add pre-commit hook & convenience script to add it. fix some vet errors.

The precommit will run
+ go vet
+ all package tests
+ gofmt

Within the cockroach dir, just run the initrepo.sh script and it will be enabled for you.