Removes Commandline field from State struct. We do not need to pass
it around to a new session, since the program is invoked with them.
This also changes the signature of StateFunc handlers.