Fixed a pretty nasty bug in the resource download server. Also made it so that clients wait for downloads to finish before attempting to load the stage.