Use renames to more safely and semi-atomically clone
ensure (somewhat more) that we remove the temp clone dir
return 404 if repository does not exist locally
atomic note