Refactor Expectr#interact!

Environment setup and teardown (calls to stty, changing of signal traps) moved
out into helper functions.