Convert legacy tab indentation to spaces and remove trailing whitespace ...

Clean up some ugly spaces and tabs.

@arthurnn, please take a quick look.