Keep the Gemfile alphabetised
Tidy up code with Rubucop's help

I don't agree with all its recommendations, and I'm not going so far as
to enforce it via a test yet, but it's helped to make the code a bit
more consistent.

A custom configuration is included.