Perform replacements in all files, including reved ones

Often you need to perform replacements in reved files. For instance in CSS files to change background image path to revved one. Also recreation of Buffer in loop had a big performance hit, so it was also removed.