Rubocop

This introduces [rubocop](https://github.com/bbatsov/rubocop) to the codebase. It's just something we can run under ci to try to consolidate coding styles and conventions.