add git pre-commit hook to build, test, fmt and vet the codebase.

fixed some complaints from go vet.

updated README.md to indicate one should make use of the pre-commit hook.