Speedup travis

Enable caching and switch to using container-based builds.