Added support for parsing and storing mod download information.

Fixed a possible crash when copying strings to / from null arrays.
Changed XML parsing to exit the main loop when the mods end tag is encountered.