Removed shell calls for some commands and made other fixes.
Added new handlekey functionality to replace what had been removed.
Fix regressions with forms.
Fixed debug mode. Now can point to any terminal (or file).