Merged all the texturing work with resource work. Some thread shenanigans are still required to get the texture loading on the correct thread, however.