Fix Rubocop warnings

Fix almost all Rubocop warnings in order the quiet down the noise.

The only ones left deal with complexity, which can be left to tackle
another time.

Change-Id: I997eb28cfa314fc5f5c757b2f0be781490fd78d7
Reviewed-on: http://gerrit.causes.com/37949
Tested-by: jenkins <jenkins@causes.com>
Reviewed-by: Shane da Silva <shane@causes.com>