Allow forwarding CTRL-C to the remote process.

This feature is controlled by the env.remote_interupt variable. The default
value is None, which means that it depends on the value of the "invoke_shell"
parameter.

If no PTY is allocated, then remote interrupts will always be disabled.
Docs + changelog re #823, fixes #823