better session name support.
add suppot for https, Need tty.js to be configured properly on remote
host.