Implemented Eien to manage temporary files.

Still needs some testing.