renamed "version" to "jsonrpc"
drastically improved error handling. Exceptions will now be thrown if
the "jsonrpc" or "id" attribute is missing from the response as well as
when json_decode() fails to parse the JSON string.