Add a pre-commit git-hook which runs pep8 and an install script.

This adds a git-hooks directory with a single `pre-commit` hook in it, and an install script. This is similar to what [ipython does](https://github.com/ipython/ipython/tree/master/git-hooks).