Consistently use unix newlines, remove trailing whitespace

Now without changing newline style in .rc and .bat files (while still stripping trailing whitespace from them), and not removing any more trailing whitespace in .cpp/.h files that astyle left behind.