Move IO into Ed.

The old method of returning String on Cont was grossly inefficient for no real
benefit. The new method should still be flexible, while not causing so many
needless string allocations.

Still a WIP; a lot of potential errors are being ignored.