Added proper .gitignore and .gitattributes, normalized line endings

.gitignore and .gitattributes are VS2012 defaults.