Rubocop

Add style checking to the test suite.

Fixed hundreds of Ruby style guide violations.