Converting crlf to just lf

Making end-of-lines consistent throughout the codebase.
Adding auto conversion to lf in gitattributes

To make end-of-lines consistent in the future.

Quoting http://git-scm.com/docs/gitattributes:
    When text is set to "auto", the path is marked for automatic
    end-of-line normalization. If Git decides that the content is text,
    its line endings are normalized to LF on checkin.