Setup rubocop.

Closes #702.
Done.