I have the same problem.
I think, good solution is using another opensource project, like this -
http://cloudcmd.io/ but its based on nodejs. I installed this script on my server with CWP, but there is some troubles:
script opening by default - (ip address):8000, and have self authorization by username/password,
read from config.json.
Best way is auth from CWP, to open this tool. I haven't options, how to do that best way.
Another problem, how to run this from CWP panel? how to add this link, and start script?
Now I starting this tool through ssl by command "cloudcmd". When I try to start from CWP panel (send shell command), CWP stops responding.