Improve CI config: move downloads to install stage to solve error 137

Showcase 'Download gradle wrapper and project dependencies on install stage'
to avoid Travis CI kills the unzip/download/install tasks on script stage.

Fix 'more jobs killed by Travis' and 'mysterious error 137 has more than one face'.