Cleaning up git hooks.

Also updated .gitignore to ignore more generated files that popped up after running the pre-commit git hook. 

Fixes #1422.
perhaps it would be better to ignore the nupic/bindings directory since that will have a bunch of generated files when you build in development mode?