Added proper .gitignore and .gitattributes, normalized line endings

VS 2012 defaults.