Move json errors to btcjson and call from there.

ok jrick@