def handle(req)
      if req.kind_of?(Array)
        resp_list = [ ]
        req.each do |r|
          resp_list << handle_single(r)
        end
        return resp_list
      else
        return handle_single(req)
      end
    end
def handle(req)
      if req.kind_of?(Array)
        resp_list = [ ]
        req.each do |r|
          resp_list << handle_single(r)
        end
        return resp_list
      else
        return handle_single(req)
      end
    end
Handles a deserialized request and returns the result

 `req` must either be a Hash (single request), or an Array (batch request)

 `handle` returns an Array of results for batch requests, and a single
 Hash for single requests.