Add rubocop to the test suite.

We ignore any currently failing cops to keep the build passing, in the
future we can fix these issues one at a time or confirm that we don't
care to follow a particular style.

This also addresses issue #664