Defer how line-endings behave to ruby.

This will allow OS to take care of various line-endings on different platforms.
Add more TODOs
Remove usage of deprecated classes