g4 http request and response objects, for now taken and edited from ZF1