Setup rubocop.

Closes #702.
This probably needs to be scoped to if `rubocop` is available. Otherwise, on other ruby versions it will cause any rake command to fail.