Added gitattributes and normalising line endings

Added .gitattributes file to ensure everyone checking out repo handles line endings the same way. Also normalised the line endings, so all text files are stored in the repo as LF, and will be checked out with the appropriate endings (CRLF on Windows)