Add JSONRPCBadResponse and JSONRPCRequestFailure exceptions.

This is to distinguish between error responses, failed requests, and
malformed responses.