support batch request

Support Batch request on server.
via. http://www.jsonrpc.org/specification#batch
move callback function, and change function name.