Don't crash on request without cookies (redirect to login instead) (fixes #76)

When handling a request without cookies, i.e., with
`typeof req.headers.cookie === 'undefined'`, detect the problem and redirect to
login rather than crashing.
Fixes #76.