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.
I think this may actually be breaking stuff for capistrano deployments.