save as template is now working, removing OLDTEMPLATES code
add a function to save a document as a template
load plugins from the users datadir first
improve error handling for external commands and filters on windows
OSX file locations and migration code
fix proper directory creation in appdata/roaming and fix autosave to use the correct directory
further updates to windows AppData config file location
use LocalAppData and RoamingAppData on windows