session: Refactor the writing of auth responses back to cockpit-ws
session: Refactor the writing of auth responses back to cockpit-ws

Make it so we can more easily compose messages and optionally
include fields of various types.

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

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