Fixed cookie handling. Beginning cache management

Fixed the cookie reading and writing to encode and decode the sessionID
with 'raw_unicode_escape' and also made first attempt at telling a
browser not to cache the page.