Change line endings for `lein new` on Windows.

Fixes #1061.

This also incorporates the new environment variable
LEIN_NEW_UNIX_NEWLINES, for people who prefer to have '\n' as their
newline on non-unix operating systems.
Add guard rails for `lein new` newline handling.