support batch request

Support Batch request on server.
via. http://www.jsonrpc.org/specification#batch
By that I mean replace `var cb = function(obj) {` with `function cb(obj) {` and drop the semicolon at the end of the function block.