Somewhat working prototype of IEx history in another process

Rough implementation of #2264.