Add java.awt.headless to default java opts
Factor out ssh-exec-proc and ssh-shell-proc

These provide a lower level interface with more flexible stream handling.
Fix session? predicate