formalization of request/response handling
bahdoink
fixes in http parsing
cppcheck run and most stuff fixed.