Refactored XML data document persistence to make it easier to test.
Added version number to the XML data document.