cosmetic - script files contain mix of spaces/tabs indentation and trail...

...ing whitespace. convert tabs->spaces and strip trailing whitespace

Before I start re-basing all my changes over the current code, there was a fair amount of mixed indentation which needed some cleanup. I also stripped trailing spaces.