Kill spawned processes on Ctrl-C

Manage the spawned shell processes, and kill them when an interrupt signal is sent to the main process.

STDERR and STDOUT of child processes is set to the main process's STDIN and STDOUT.

Fixes issue #55.