Event system rewrite.

Scene now sorts entities by z-value when new entities are added.