significant improvements to ghttp.xtm (lib and example)