moved the last render frame id and added last update frame id to the renderable api

and used that to optimized testing if visible. also fixed the shadows
and lights attach functionality.