Add a unique hash to a file, and update requirejs paths to cache-busted paths.