Code cleanup with ReSharper.  500-odd issues cleared up.