Fix tests to run on Windows platform

Changed line endings to LF and added .gitattributes file to enforce LF
line endings in future. Changed SbtBuilderTest to correclty check
classpaths on both Windows and Unix systems. Proper try/finally for
tests using createProjects added.

Fixes #1001981
Merge pull request #588 from Kwestor/windows-build-1001981

Fix tests to run on Windows platform