Optimize Travis CI file caching

- store ivy cache
- don't store the whole ~/.sbt foldertree in S3
- add a new trick to avoid unnecessary ivy cache uploads

Follow up of #867.
Grant 3784M of maximum memory in Travis CI builds
Merge pull request #868 from gildegoma/fix-travis-caching

Improve new Travis CI configuration