fixing bug: sending two requests on the same connection freezes that session because of state not being cleared. made wrapper function (setup-parser) and implemented in handle-connection and send-response. works really well.
adding working cookie plugin (with set-cookie and cookie-var plugin functions).