Use ruby version specified in .ruby-version in accounts on travis

Also add command to make travis retry bundle install due to frequent
network timeouts.