http: make line processing dynamic

This overcomes issues caused by long lines, as experienced when enabling
cookies for extjs grid state.
webui: enable state on all idnode based grids