Replace reference with pointers in game objects

Replaced component's entity reference for a pointer.
Replaced entity's layer reference for a pointer.
Replaced layer's scene reference for a pointer.
Updated demos