Imported code from maniaplanet/manialib-xml, renamed ManiaLib to Manialib, and random stuff