Reformat code
Introduce .gitattributes and normalise line endings