finished porting sgs-sdl to latest version of sgscript, fixed resource caching/design bugs