General bug-fixes

Fixes to exit routines to ensure data is always saved unless the user
explicitly discards. Also trying a native format for saving. XML Schema
are documented and there's a module for it (SaveSalstatNative.py).