Lwt client new

Functorise the autogenned client module, and a fix for the new jsonrpc module