Add git hooks to run tests on commit

Work around issues with bodyParser with old versions of foreman