fix shell invocation

Oops, forgot to mention this: the PTY shell now gladly accepts a full session on construction, instead of a context list.  I  will fix the adaptors in devel