Rework of httputil.
Restructured httputil to become more effecient.