Speed up bundle install on Travis.

Update the travis config per travis doc structure. Move `ruby-head` to
later in the build so that the more important versions run first. Speed
up the bundle install and improve gem install failures.