Scala-stylify Moe

This is a big-ass patch.  I thought it better to just bring down the hammer all at once in a giant style patch that did not change any functionality.  I have some other changes and they will depend on this.

All tests pass.