Add a pre-commit hook for git

This is just stored here right now and one can copy it to .git/hooks.
The git-stoq plugin will integrate here and do that automatically.

Change-Id: I45df32e39148e1ead2ab1e8e595c4ad6758c7b02