Added .gitignore file & fixed permissions.

Added list of filename patterns to be ignored by Git via new .gitignore file.
Removed execute permissions from C++ source files and all CMakeLists.txt files.