moved main thread loading to backgroundworkers

Also fixed some XML server side stuff.