match freenode subdomains when checking irc link
set cookie only if there is something to store
fix session test for new cookie handling