Fix coverage and couple issues with the tests.
Fixed fork detection - by monkey-patching os.fork :(
Add test for auto-reinstall on fork.
Add some cry calls when fork happens.
Refactor it a bit.
Add test for auth failure.
Add test for forkpty.rinmtrint
Fix couple issues with coverage computation.
Fix few issues with patching fork/forkpty (they may already be patched).
Add a test for graceful disconnect.
Put some goodies in the repl's locals.