Various updates in the HTTP stack, to consume less memory and use non-deprecated Date API. Integrated cookie parsing patch contributed by Julien Mudry