Added first draft of autosaving functionality and hooked it up to HTML GUI

* Need to hook it into Qt GUI
* Battle hardening required