Fix line-endings
Remove executable permissions.
improve cleanupBeforeCommit script.
Fix cmake indents.
Much improved cleanup script.
Extend gitattributes file to match cleanup script
Perform application of gitattributes.