Redesign of the relax state loading for adding support for a XML formatted state file.
Half of the load_state() is now in load_pickle(), and a new function load_xml() added.
The determine_format() function will tell if the file is a pickle or XML file, and then
load_pickle() will run the appropriate loading function.