Add .gitattributes file.

http://stackoverflow.com/questions/21472971/what-is-the-purpose-of-text-auto-in-gitattributes