Add `shell()` and `quote_shell()`.

Will use them for the editor in the next commit (ref issue #80).