add assignToVariable for downloadCache; update build environment handling with 'with'
Add storeCache function