Add support for running GHCi as a background REPL

Actually, any string can be used as a REPL command as long as the
process it starts is reasonably similar to GHCi, e.g. `cabal exec ghci`,
`cabal repl`, `ghci-ng` (probably?)