Better batch support

Replaces _batch method with batch_ method, which is passed
an array of arrays of form [ [ "method", params...], ... ]
and returns an array of results.

Any errors in any of the results throws an exception.