Define errors (previously done in btcwallet and btcd's rpcserver) in one place so they can just be called by name rather than generated in code using btcjson. Closes #5