Add auto saving for editor and a basic error log system