Tilovell/worker should record last failure applying edit

viewing diff with whitespace ignored might be useful: https://github.com/NuGet/NuGetGallery/pull/1494/files?w=1