common: Use simpler parsing in cockpit_transport_parse_command()
common: Use simpler parsing in cockpit_transport_parse_command()

Just parse the command directly as an object from the payload
bytes. Fixes a bug where we freed a JSON node we shouldn't have.

Closes #521
Reviewed-by: Marius Vollmer <bb11c6e942c5cc765df5f04da146b3198127a7a3@redhat.com>

kkaempf/cockpit,SotolitoLabs/cockpit,sgallagher/cockpit,vanloswang/cockpit,petervo/cockpit,kkaempf/cockpit,moolitayer/cockpit,nmav/cockpit,kkaempf/cockpit,netzvieh/cockpit,Armstrong1992/cockpit,michalskrivanek/cockpit,xhad/cockpit,larsu/cockpit,Thermionix/cockpit,SotolitoLabs/cockpit,fridex/cockpit,zigitax/cockpit,SotolitoLabs/cockpit,denysvitali/cockpit,SotolitoLabs/cockpit,sgallagher/cockpit,jscotka/cockpit,moraleslazaro/cockpit,firebitsbr/cockpit,petervo/cockpit,vbatts/cockpit,haiyangd/cockpit_view,larskarlitski/cockpit,jscotka/cockpit,moolitayer/cockpit,kkaempf/cockpit,fridex/cockpit,maxamillion/cockpit,SotolitoLabs/cockpit,netzvieh/cockpit,netzvieh/cockpit,dperpeet/cockpit,mareklibra/cockpit,vanloswang/cockpit,darioajr/cockpit,larskarlitski/cockpit,Armstrong1992/cockpit,martinpitt/cockpit,matobet/cockpit,mvollmer/cockpit,darioajr/cockpit,kkaempf/cockpit,vanloswang/cockpit,andreasn/cockpit,sub-mod/cockpit,larsu/cockpit,andreasn/cockpit,sgallagher/cockpit,FireDrunk/cockpit,vanloswang/cockpit,mvollmer/cockpit,nmav/cockpit,cockpituous/cockpit,mareklibra/cockpit,martinpitt/cockpit,vbatts/cockpit,xhad/cockpit,garrett/cockpit,andreasn/cockpit,maxamillion/cockpit,cockpituous/cockpit,zigitax/cockpit,garrett/cockpit,darioajr/cockpit,zigitax/cockpit,Armstrong1992/cockpit,xhad/cockpit,matobet/cockpit,michalskrivanek/cockpit,maxamillion/cockpit,sub-mod/cockpit,cockpit-project/cockpit,evol262/cockpit,vbatts/cockpit,sgallagher/cockpit,darioajr/cockpit,Thermionix/cockpit,Thermionix/cockpit,SotolitoLabs/cockpit,nmav/cockpit,maxamillion/cockpit,stefwalter/cockpit,xhad/cockpit,nmav/cockpit,andreasn/cockpit,dperpeet/cockpit,jscotka/cockpit,firebitsbr/cockpit,firebitsbr/cockpit,SotolitoLabs/cockpit,xhad/cockpit,petervo/cockpit,vanloswang/cockpit,FireDrunk/cockpit,larsu/cockpit,fridex/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,Armstrong1992/cockpit,stefwalter/cockpit,mvollmer/cockpit,firebitsbr/cockpit,harishanand95/cockpit,arilivigni/cockpit,jscotka/cockpit,moraleslazaro/cockpit,fridex/cockpit,vbatts/cockpit,arilivigni/cockpit,nmav/cockpit,Thermionix/cockpit,mvollmer/cockpit,dperpeet/cockpit,harishanand95/cockpit,haiyangd/cockpit_view,matobet/cockpit,petervo/cockpit,deryni/cockpit,stefwalter/cockpit,larskarlitski/cockpit,michalskrivanek/cockpit,FireDrunk/cockpit,moolitayer/cockpit,larskarlitski/cockpit,sub-mod/cockpit,matobet/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,haiyangd/cockpit_view,martinpitt/cockpit,petervo/cockpit,harishanand95/cockpit,mareklibra/cockpit,netzvieh/cockpit,denysvitali/cockpit,vbatts/cockpit,deryni/cockpit,petervo/cockpit,dperpeet/cockpit,moraleslazaro/cockpit,Scribery/cockpit,stefwalter/cockpit,harishanand95/cockpit,mareklibra/cockpit,evol262/cockpit,evol262/cockpit,larskarlitski/cockpit,vanloswang/cockpit,larskarlitski/cockpit,fridex/cockpit,netzvieh/cockpit,larsu/cockpit,FireDrunk/cockpit,dperpeet/cockpit,michalskrivanek/cockpit,deryni/cockpit,sub-mod/cockpit,FireDrunk/cockpit,evol262/cockpit,Scribery/cockpit,larsu/cockpit,andreasn/cockpit,vanloswang/cockpit,cockpit-project/cockpit,arilivigni/cockpit,zigitax/cockpit,arilivigni/cockpit,arilivigni/cockpit,deryni/cockpit,deryni/cockpit,xhad/cockpit,stefwalter/cockpit,michalskrivanek/cockpit,xhad/cockpit,sub-mod/cockpit,arilivigni/cockpit,evol262/cockpit,moraleslazaro/cockpit,harishanand95/cockpit,michalskrivanek/cockpit,mareklibra/cockpit,jscotka/cockpit,cockpit-project/cockpit,matobet/cockpit,haiyangd/cockpit_view,dperpeet/cockpit,martinpitt/cockpit,moolitayer/cockpit,dperpeet/cockpit,haiyangd/cockpit_view,michalskrivanek/cockpit,deryni/cockpit,andreasn/cockpit,Scribery/cockpit,harishanand95/cockpit,vbatts/cockpit,Scribery/cockpit,cockpituous/cockpit,netzvieh/cockpit,Armstrong1992/cockpit,zigitax/cockpit,garrett/cockpit,sgallagher/cockpit,harishanand95/cockpit,cockpit-project/cockpit,denysvitali/cockpit,arilivigni/cockpit,Scribery/cockpit,mareklibra/cockpit,larskarlitski/cockpit,petervo/cockpit,matobet/cockpit,cockpituous/cockpit,jscotka/cockpit,firebitsbr/cockpit,moolitayer/cockpit,Scribery/cockpit,denysvitali/cockpit,Thermionix/cockpit,cockpit-project/cockpit,stefwalter/cockpit,larsu/cockpit,garrett/cockpit,evol262/cockpit,moraleslazaro/cockpit,sgallagher/cockpit,mareklibra/cockpit,deryni/cockpit,sgallagher/cockpit,Scribery/cockpit,Thermionix/cockpit,darioajr/cockpit,fridex/cockpit,stefwalter/cockpit,andreasn/cockpit,martinpitt/cockpit,denysvitali/cockpit,garrett/cockpit,mvollmer/cockpit,maxamillion/cockpit