WIP: Precommit
This works for running swagger validate as a pre-commit hook. However, it checks the file whether it is staged or not. That means it will prevent a commit with an invalid spec, even if we are not trying to commit the spec file!
We need to figure out a way to have the validator check only staged files.