Changing reply -> response and adding operator<< overloads to take both headers and cookies, which are also included. Also various fixes/modifications/refactorings.