Fix cleanupBeforeCommit script to work with fromdos properly.
Cleanups from checkBeforeCommit.sh
Add scripts for formatting source files.