Add .gitattributes file and autocrlf option.

Fix EOL problems.