Fixed some crashes in the cookie handling

Webservers won't send us HTTP_COOKIE if ther are no cookies. request.py
was accessing environ['HTTP_COOKIE'] without checking if it was set
first. This caused the request to error out if there were no cookies
set.

CookieManager.key now defaults to None (it was previously left unset).