Add pre commit check script

for https://github.com/kili/dashboard/issues/28
with a copy-pasta from here:- http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/