Update travis config to match axiom
Upgrade gem dependencies
Change inference cache to use a Threadsafe::Cache

* The ThreadSafe::Cache is optimized towards performance while
  giving up some compatibility with the hash interface. It is better
  suited for a cache than ThreadSafe::Hash.