Changed code to use scene as main top-level logic.

Layers are part of scenes. The final idea is to have events on
scenes, not layers.