Moved every reference to handle/id over pointers.

This fixes all the bugs we had with reallocation of the arrays in
sl_renderer_global.
Added resizing support when using FBO to render