Add support for TexturePacker's generic XML export

Also clean up the XML parsing a bit