Implement rpc call batch, to loop apis in one rpc call, fix some coffee script rpc generation typo

If an exception is thrown for one of the parameters then the index of the arguments that caused the exception should be captured and attached to the exception.