Implemented tween for jsonrpc batch processing.
Fixed bug caused by missing handling of a unbatched request.
Updated the tests and removed some debug output.