Apply esardaya's fix from #378
Fix line endings.
Implement typeof(this) for static methods in JSReplacement (#424)

Conflicts:

	Tests/Tests.csproj
Change test run compilation output from .js to .out
Allow writing tests in raw JS to exercise runtime library