Merge pull request #4 from wercker/cache

use validating http headers
download to temporary file and rename

Should resolve issues where the same invocation of mhook runs multiple
times concurrently.