Configure gradle to refresh dynamic deps promptly

This saves us using --refresh-dependencies willy-nilly, which
wastes loads of time on the non-dynamic dependencies.
Merge pull request #2 from csmith/master

Unshallow properly.
Merge pull request #3 from csmith/cache-sensibly

Configure gradle to refresh dynamic deps promptly
Run gradle in parallel mode.