Clean up sources a bit
Convert everything to LF
Indent and fix whitespace
Other miscellaneous fixes