Create `AutoSave` class and mechanism

This Issue is the second part of #73 (closed). See last comment on that Issue for more information.

Edited by d.kilic