Multiple simultaneous sessions no longer steal each other's data
'Interactive' sessions now preserve newlines properly
Cleaned up the server-side 'session state' code, which was tracking state in two different ways that effectively did the same thing (@state and @is_active)