Pre-commit hooks

Initial revision of pre-commit hooks. To use, run `setup.sh` from the hooks directory. This will create the appropriate symlink in the `.git/hooks` directory.