refs: Return structured errors for DeleteRefs
In the cases where we get an error trying to update the ref, return a structured error with the git error embedded in it so the rails side can interpret the error and raise a GitError.
Changelog: changed