initial commit of git templates

pre-commit hook to support blocking commits from master. Based
on https://gist.github.com/Simbul/1781656 but done in shell for
portability reasons.