Add style checking git hooks.

This adds a mechanism to check your commits and stop you from making mistakes. It will tell you if your code is in bad style, or if you are trying to commit a non-resolved file for example.

A little pain goes a long way.

@hishamelgezeery you had some objection to this?

Also, any input from anyone else?