Fake save functionality

This implements the fake save functionality that was discussed briefly in #7. Is not yet complete, because I still need to write the pieces that allow the session to be restored.