Added Rubocop, removed Ruby 1.8.x support.

Added Rubocop.
Time to retire Ruby 1.8.7 which is no longer supported.