git: Add pre-commit hook
git: Add pre-commit hook

Add a pre-commit hook that runs the npm script validate which in turn
runs all linting, compilation and testing scripts.

lgeorgieff/nbuild,lgeorgieff/express_playground,lgeorgieff/ccbuild,lgeorgieff/express_playground