Rewrite session code and add support for persistent sessions.