Fix line endings

Change local line endings to LF and add .gitattributes.