Feature/ruby cleanups

Added rubocop and using it to clean up Ruby syntax and style. This is a lot of changes, but very little of it is functional. In fact, it should be nothing but syntax updates.