Sped up the travis build, prepared scripts for travis caching.