Adding Rubocop and a whitespace cleaner.

The Rubocop config will need some work, and some of the kvetching it does now will be fixed by a run of the whitespace cleaner, but it's a starting point.

Haven't integrated it with 'rake test' to avoid making all CI builds fail until we get to an agreed configuration and polish things up to adhere to it.