JSON-RPC implementation in PHP based on http://jsonrpcphp.org/