Added a first pass at the XML import functionality (sans SQL commits, right now).