More client-mode cleanup

Fix issues with the old gui.
Includes some debug printouts for client mode
Merge branch 'master' of github.com:0xdata/h2o-dev