miscellaneous cleanup

Fix typos, delete obsolete comment, and remove cookie-clearing code that's obsoleted by random host IDs.