Base sandbox implementation.
BaseSandbox implements
SandboxBackendProtocol.
File listing, grep, glob, and read use shell commands via execute(). Write
delegates content transfer to upload_files(). Edit uses server-side execute()
for payloads under _EDIT_INLINE_MAX_BYTES and falls back to uploading old/new
strings as temp files with a server-side replace script for larger ones.
Concrete subclasses implement execute() and upload_files(); all other
operations are derived from those.