move pty creation into server class

create terminal immediately on client
separate session connection from pty terminal creation