Whitespace fix (DO NOT MERGE YET!)

Untabified everything and fixed indentation on all files. 

I will keep rebasing this on top of the latest master as we merge outstanding pull requests, because it will conflict with nearly all of them. Then I'll merge this last.

Fixes #508.