add class HeaderManager, fix status code(not completed)

add class HeaderManager so that code could be reused int request and response classes
fix mistake. in the past, status code and content type sending was hard coded int container so that servlet could not specific them.