Added rubocop

https://github.com/bbatsov/rubocop now running in the default rake task.
Refactor some rubocop violations

To knock them all of a the urgent refactor of Toggler is needed.