Add caching to dependencies

Details from the following blog post:
  http://about.travis-ci.org/blog/2013-12-05-speed-up-your-builds-cache-your-dependencies/