Adhere to style guide

This takes into account the suggestions made by [RuboCop](https://github.com/bbatsov/rubocop) according to the [Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide).

Some checks (“cops”) are not enabled yet, but will be enabled in nanoc 4.x since we do not have to worry about merging changes there.