Add Rubocop and do automated rubocop fixes.
Add rubocop_todo, and correct some minor offences.