Threading fixes, XML scene and world loading, miscellaneous.