Support importing infer
Save LaTeX in localStorage
Fix autosave
Fix diagram & macro importing