tools: move autosave timer into dedicated function
tools: move autosave timer into dedicated function

dbartolini/crown,mikymod/crown,dbartolini/crown,mikymod/crown,galek/crown,galek/crown,galek/crown,galek/crown,dbartolini/crown,mikymod/crown,mikymod/crown,dbartolini/crown