Fix line endings, update gitignore
Updating gitignore and adding gitattributes to fix line endings.