Setup rubocop.

Closes #702.
Merge pull request #770 from rspec/setup-rubocop

Setup rubocop.