Changed gitignore and added gitattributes

Changed gitignore to ignore more files generated by Visual Studio and
added gitattributes so files will have the correct file types.