Added adtmpl document type and icon.
Added loading and saving of templates from GUI.