Add .gitattributes & .editorconfig

These settings will hopefully make it easier to play with others :)
Normalize line endings
Add newline at end of all files and remove trailing whitespaces