Extract strings to helper module.
Add a working directory to the console record.
Communicate with subprocesses using a Pseudo-tty.

This should allow programs like vim to work (although at the moment it
doesn't), relating to issue #5.