fixed some shutdown/cleanup problems; added additional gfx resource loading policy to better handle environments with multiple gl contexts and out-of-context resource creation