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 #3 from csmith/cache-sensibly

Configure gradle to refresh dynamic deps promptly