implement response/request handling
refactor code to move server functionality into seperate httpserver class