simple client for using JsonRPC api(s), CPU-357
different error handler for different api kinds, CPU-357
minor code cleanup