Update storage purge scripts

(Note that these are quite possibly buggy. Use with caution.)
Avoid notice if Z_CONFIG::$REDIS_PREFIX doesn't exist
Wait 1 second after queuing download to retry, not 1 ms
Avoid unnecessary memcache lookups for libraryID/userID