How would I go about implementing optional batch rpc requests as specified here: http://www.jsonrpc.org/specification#batch ?