Normalized line endings

Added .gitattributes to force LF line ending conversion on commits.

Some of the files appear to have had different line endings to most, so those have also been normalised.