Add .gitignore and .gitattributes.

Added a .gitignore and .gitattributes using GitHub for Windows.  When
adding the .gitattributes file, GitHub for Windows also updated line
ending for each file.