Fix mixed tabs/spaces, and add .gitattributes.