Use random tempfile path for sources

Change-Id: If1cae32ea1317b2450a078af62b69f3ca5269261
Store last_metadata in /var/cache/heat-cfntools

Change-Id: Ic354faa157ebc0fa27d9d8502569a329dce149e2