Added proper .gitignore and .gitattributes, normalized line endings

.gitignore and .gitattributes are now Visual Studio defaults. Line endings are normalised to CRLF that Visual Studio uses.