download to temporary file and rename

Should resolve issues where the same invocation of mhook runs multiple
times concurrently.
Merge pull request #5 from wercker/concurrent_dl

Concurrent dl