hodpodge of cleanups

Hello! This is a collection of cleanups mostly centered around the addition of https://github.com/bbatsov/rubocop to the build. I went ahead and fixed some style violations, and included a config file that instructs rubocop to ignore the remaining unfixed ones - some of them don't make sense for this project.

Please have a look!