Fix incorrect uid and gid on command daemon script
Fix code to properly set up a tunnel
Explicitly specify 'sudo' in commands
Make the panel establish and use an SSH tunnel instead of using php-ssh2