Add pre-commit hook (Fixes #37)

It is kind of hard to test pre-commit hooks -- we might have to live with it for a while and see.