Add gitattributes file.

I have followed @jakubpawlowicz advice on git line endings and added Github's suggested settings to a gitattribute file. Is this correct @andrewgarner