Replace cgi.parse.
Make session.gennonce more sound.