Rearranged mesh rendering/shader to allow for shader override.
Fixed refcount on files.
Added some helpers to FBO and PanelObjectList.