Git EOL fix and pre-commit hooks

The .gitattribute file will ensure we don't face more End of Line problems.

Removed the pre-commit gem as it was troubling a lot of people and added a custom script that is a lot more portable and checks only basics (whitespace, merge conflicts)

@hishamelgezeery could you confirm these changes?