Add rubocop for style checking
Add RuboCop and fix style violations

Some of RuboCop's defaults are not strict enough, so I've made them
closer to Sandi's rules (5 lines/method, 3 arguments to a method).