Added git hook for pre-commit tests into repository

To install, create a link to .git/hook/git-commit. Make sure all tests in
test/runall.rb pass before committing.