RPC for with json transport (callbacks and listeners) for nodejs and browser wit clone feature