Move fetch_ref from http-push.c and http-walker.c to http.c