Added pre-commit hook.

Checks all .go files to be commited for proper formatting. The hook will be installed automatically by Makefile.