fixes for httpjson changes.
Also update to use new errgo path.