Add RuboCop to build pipeline and fix offences.
Merge pull request #352 from troessner/rubocop_setup_and_cleanup

RuboCop setup and cleanup