Added .gitattributes file and updated .gitignore.

Fixed line endings.