support batch request

Support Batch request on server.
via. http://www.jsonrpc.org/specification#batch
i change that. but, jshint says 'Function declarations should not be placed in blocks.'
what do you want to do?