Add optional session key for shared PTY sessions
Introduce an optional key parameter for session creation and lookup,
defaulting to the sandbox id. Derive the key from the sessionId URL
parameter so shared connections can reuse the same PTY session. Update
all PTY backends and session maps to set/delete by key and propagate it
through getSession/createTerminalSession calls