Whitespace and formatting cleanup only

No functionality was changed.

Goal is to align code with Ruby best practices:
https://github.com/bbatsov/ruby-style-guide

Note: functional changes and formatting changes should
go into different commits to prevent confusion and help
debugging when running test suites.