Set expiry for cookie so it's not a session cookie.

Set RFC822 date because that is preferred. Setting the expiry fixes #374.

Also set RFC822 date for deleted sessions.
Give a better git init suggestion (fixes #375)

Also fixed a stray hardcoded environment path