implemented deprecated connect cookie parsing middleware
implemented sending cookies using connects setHeader()