Ran 'format document' on all *.cs files.

The most noticeable change is standardizing on opening braces on the
same line rather than the next line.

I also did some minor cleanup here and there and intend to do a more
thorough cleanup another time.