Update client API

res becomes data in result JSON entry
Fix debugger history method call

For an unknown reason date from and to are reversed !?