Restart almost from scratch the "GUI" block and get rid of the uggly
stuff.
Use cherrypy session mechanisms and create custom handler.